TheSwamp

Code Red => VB(A) => Topic started by: crsmith on December 22, 2004, 11:45:10 PM

Title: Big Font File
Post by: crsmith on December 22, 2004, 11:45:10 PM
G'day all,
Just wanted to know if anyone knows how to change the state of the "use big font" check box in the textstyle dialogue box via vba code.

I want to globally change all textstyles so that they don't use a bigfont file.
I can change height's, width's etc... but not this check box.
Cheers,
Cam.
Title: Big Font File
Post by: hendie on December 23, 2004, 08:01:38 AM
I don't see any way of accessing it directly.
Could you delete the text style, then re-create it ?
or specify a different font ~ only SHX files can use bigfonts ~ could you specify a TTF and then change it back to the SHX file ?
I don''t have time to try it but it might be worth a go
Title: Big Font File
Post by: Jeff_M on December 23, 2004, 12:15:08 PM
Interesting....you can add a filename to the BigFontFile property of any Style, yet you cannot change it to an empty string or null. So you can force a style to use bigfonts but you cannot reverse the process........from the help:
BigFontFile

String; read-write
The name of the big font file.

Remarks

This property is similar to the FontFile property, except it is used to specify an Asian-language big font file. The only valid file type is SHX.

This property cannot be set to NULL or an empty string.
Title: Big Font File
Post by: hendie on December 23, 2004, 12:29:30 PM
that's why I thought  specifying a TTF might "clear" the option but I haven't had time to look into it
Title: Big Font File
Post by: Jeff_M on December 23, 2004, 12:45:00 PM
I just tried the TTF idea and it won't accept a TTF while a bigfont is specified for a style......so I think that Hendie's first idea is the way to go.
Title: Big Font File
Post by: crsmith on December 23, 2004, 07:53:29 PM
Thanks guys, you've given me a few options to try and I'll let you know how I go.
Glad to hear I wasn't missing something simple.
I can't understand why there isn't a direct method of specifying that particular check box.... Oh well just have to try and work around it.
Cam