13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EnumFontsFontFunc is a placeholder for the application-supplied function name. Theactual name must be exported by including it in an EXPORTS statementin the application's module-definition file.ParametersIpLogFontIpTextMetricsnFontTypeIpDataPoints to a LOG FONT data structure that containsinformation about the logical attributes of the font.Points to a TEXTMETRIC data structure that containsinformation about the physical attributes of the font.Specifies the type of the font.Points to the application-supplied data passed byEnumFonts.Return valueCommentsThe return value can be any integer.The AND (&) operator can be used with the RASTER_FONTTYPE andDEVICE_FONTTYPE constants to determine the font type. TheRASTER_FONTTYPE bit of the FontType parameter specifies whether thefont is a raster or vector font. If the bit is one, the font is a raster font; ifzero, it is a vector font. The DEVICE_FONTTYPE bit of FontType specifieswhether the font is a device- or GDI-based font. If the bit is one, the font isa device-based font; if zero, it is a GDI-based font.If the device is capable of text transformations (scaling, italicizing, and soon) only the base font will be enumerated. The user must inquire into thedevice's text-transformation abilities to determine which additional fontsare available directly from the device. GDI can simulate the bold, italic,underlined, and strikeout attributes for any GDI-based font.EnumFonts only enumerates fonts from the GDI internal table. This doesnot include fonts that are generated by a device, such as fonts that aretransformations of fonts from the internal table. The GetDeviceCapsfunction can be used to determine which transformations a device canperform. This information is available by using the TEXTCAPS index.GDI can scale GDI-based raster fonts by one to five horizontally and oneto eight vertically, unless PROOF_QUALITY is being used.Chapter 4, Functions directory 259

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!