Page 1 of 1
Ability to change font style after creation.
Posted: Sat Aug 27, 2005 2:53 am
by Shannara
viewtopic.php?t=16490
In short, I would like the ability to modify font styles after font creation

Posted: Sat Aug 27, 2005 10:26 pm
by Fred
On Windows for example, the style has to be specified when creating the font. Why don't you want to recreate the font at every change (any special reasons ?).
Posted: Sat Aug 27, 2005 10:43 pm
by Shannara
Heh

Thanks for the reply Fred
Well, for instance, I load all of my font information from a file once the program have started. Each style piece has a true|false switch. Such as .. FontBold, FontUnderline, FontStrikeout. When looking through the font part of the manual, it looks like the style must be passed with the creation of the Font.
Now, I have no problem doing that except that I havent found a way to combine my switches to a usable font creation proc, easily.
For instance. I cant do #PB_Font_Bold + #PB_Font_Underline and then later call the LoadFont with the result, could I?
Posted: Sun Aug 28, 2005 11:53 am
by Fred
Sure, but better use the | operator instead of +.