Ben
2009-05-17 11:06:31 UTC
Hey, I have three questions about fonts:
1. According to the msdn site, there are six standard logical fonts,
one of which ("OEM_FIXED_FONT") I've used quite a bit (for example,
HFONT hFont = (HFONT)GetStockObject(OEM_FIXED_FONT);), however I'm not
really sure where these fonts come from (there's no "OEM_FIXED_FONT"
in the Windows Fonts directory in C:\WINDOWS\Fonts\). I would like to
use this font with another function, DialogBoxIndirect, but it seems I
can only specify a typeface as a string, and I don't know what that
string should be to specify the OEM_FIXED_FONT. Does anyone know where/
how this font is stored, and what typeface it might correspond to?
2. What font does command prompt use? If you go to the properties
dialog box, then the font tab, it just says "Raster Fonts", which
doesn't really refer to a single font, does it? Obviously it must only
use a single font, which appears to me to be very similar to the
OEM_FIXED_FONT. I would also like to know which font this is, and
where/how it is stored (and what typeface it might correspond to).
3. Of the many fonts I find in my C:\WINDOWS\Fonts\ directory, there
are four that I can't seem to view using the standard font viewer;
when I try to open them I get notepad showing some kind of XML code
I'm not familiar with, which I could reproduce in a subsequent post if
you want. The four font names are "Global Monospace", "Global Sans
Serif", "Global Serif", and "Global User Interface", corresponding to
the four filenames "GlobalMonospace.CompositeFont",
"GlobalSansSerif.CompositeFont", "GlobalSerif.CompositeFont", and
"GlobalUserInterface.CompositeFont". I wonder what these files
represent, what code they use, how I might view the fonts they
represent, what typeface they might correspond to, and if they are in
any way related to OEM_FIXED_FONT, the other five standard logical
fonts, or command prompt's "Raster Fonts".
I realize these are a lot of questions, and I would appreciate any
answers anyone can give.
Thanks,
Ben
1. According to the msdn site, there are six standard logical fonts,
one of which ("OEM_FIXED_FONT") I've used quite a bit (for example,
HFONT hFont = (HFONT)GetStockObject(OEM_FIXED_FONT);), however I'm not
really sure where these fonts come from (there's no "OEM_FIXED_FONT"
in the Windows Fonts directory in C:\WINDOWS\Fonts\). I would like to
use this font with another function, DialogBoxIndirect, but it seems I
can only specify a typeface as a string, and I don't know what that
string should be to specify the OEM_FIXED_FONT. Does anyone know where/
how this font is stored, and what typeface it might correspond to?
2. What font does command prompt use? If you go to the properties
dialog box, then the font tab, it just says "Raster Fonts", which
doesn't really refer to a single font, does it? Obviously it must only
use a single font, which appears to me to be very similar to the
OEM_FIXED_FONT. I would also like to know which font this is, and
where/how it is stored (and what typeface it might correspond to).
3. Of the many fonts I find in my C:\WINDOWS\Fonts\ directory, there
are four that I can't seem to view using the standard font viewer;
when I try to open them I get notepad showing some kind of XML code
I'm not familiar with, which I could reproduce in a subsequent post if
you want. The four font names are "Global Monospace", "Global Sans
Serif", "Global Serif", and "Global User Interface", corresponding to
the four filenames "GlobalMonospace.CompositeFont",
"GlobalSansSerif.CompositeFont", "GlobalSerif.CompositeFont", and
"GlobalUserInterface.CompositeFont". I wonder what these files
represent, what code they use, how I might view the fonts they
represent, what typeface they might correspond to, and if they are in
any way related to OEM_FIXED_FONT, the other five standard logical
fonts, or command prompt's "Raster Fonts".
I realize these are a lot of questions, and I would appreciate any
answers anyone can give.
Thanks,
Ben