Add a "Dump Font Cache" option to the context menu for the debug dialog, to help in debugging/analyzing font usage. (The text string "Dump Font Cache" may be over-ridden by defining message string 005,008 in the SYSMSG.USA file.) The fields displayed in the dump are as follows:
Field |
Description |
face |
Font face name |
ht (height) |
Height of the font in device units. Negative values refer to the character height of the font; positive values refer to the cell height (which includes leading). A-Shell almost always uses the character height (i.e. negative values). |
wd (width) |
Width of the font in device units. This normally applies only to fixed width fonts where the FA_GRIDWIDTH flag was specified in the fontattr parameter for the control. |
wt (weight) |
Weight of the font (also from the fontattr parameter). |
it (italic) |
0=normal, 1=italic. |
pf (pitch and family) |
0=default (typical, since face name determines it.) |
ul (underline) |
0=no, 1=underlined |
cs (charset) |
0=default (typical, since face name generally determines it.) |
hf (handle to the font) |
This will be some large hex number. |
nref (# of references) |
The number of controls currently sharing this font. |