(Num) May be used to override the default font attributes for the control. Again, as with colors, this is probably used most effectively only with static text controls. Choose one or more (sum) from the following tables. Note that these are only requests to the font mapper; if it cannot supply an exact match for the given fontface, fontscale, and fontattr values, if will supply the "closest" match. Note: this table also occurs in XTREE Param…coldef…advanced…font; change here and copy there!!!
Symbol |
Value |
Description |
FS_UPRIGHT |
&h00 |
Normal upright |
FS_ITALIC |
&h01 |
Italic |
FS_UNDERLINE |
&h02 |
Underline |
FS_STRIKEOUT |
&h04 |
Strikeout |
Symbol |
Value |
Description |
FA_DONTCARE |
0 |
Do not care |
FA_THIN |
1600 |
Thin |
FA_EXTRALIGHT |
3200 |
Extra Light |
FA_LIGHT |
4800 |
Light |
FA_NORMAL |
6400 |
Normal |
FA_MEDIUM |
8000 |
Medium |
FA_SEMIBOLD |
9600 |
Semibold, demibold |
FA_BOLD |
11200 |
Bold |
FA_EXTRABOLD |
12800 |
Extrabold, ultrabold |
FA_HEAVY |
14400 |
Heavy |
Note the difference between the FA_xxx symbols used here, and the similar FW_xxx symbols used by the //SETFONT GDI printing directive; the FA_xxx symbols are shifted up 4 bits (16 times) from the FW_xxx symbols.
Symbol |
Value |
Description |
FA_GRIDWIDTH |
&h00008000 |
This flag may be added to FONTATTR to tell the font matcher to try to match the average character width to the grid cell width. This probably only makes sense when specifying a fixed pitch font, in which case it should make the selected font match pretty closely in width to the standard non-GUI text. |
FA_SYMBOL |
&h00020000 |
Use symbol character set (instead of the ansi character set). This normally would only make sense with a fontface like "Wingdings" or "Symbol." Symbol fonts are mainly used in the context of AUI as a trick for creating buttons with graphic, without having to find or create an icon or bitmap. See the sample program SYMBOL in EXLIB:[908,24] for an example. |