|
|
1.1 ! root 1: Sample: Demonstration of the Win32 Font API Functions ! 2: ! 3: Summary: ! 4: ! 5: The NTFONTS sample is an easy to use, powerful utility which ! 6: allows the user to explore the font system. There is a ! 7: toolbar on top of the main frame window with buttons that ! 8: allow the following actions: ! 9: ! 10: 1.Enumerate all of the fonts installed for the display. ! 11: 2.Get TEXTMETRIC information. ! 12: 3.Create a font based on an arbitrary LOGFONT structure. ! 13: 4.Enumerate all of the fonts available to the default ! 14: printer. ! 15: ! 16: More Information: ! 17: ! 18: The program is designed to provide the user an easy ! 19: interface to the API calls related to the font system. It ! 20: will not protect against meaningless values, nor will it ! 21: hide system oddities. Most of the buttons on the toolbar ! 22: are self explanatory and represent a single system API. ! 23: ! 24: Pressing the EnumFonts button will show all of the face ! 25: names listed horizontally, and each of the fonts within that ! 26: face name listed vertically below it. TrueType, or any ! 27: other fonts that do not have a type of RASTER_FONTTYPE will ! 28: be marked with a small colored "TT" bitmap. Fonts that have ! 29: the DEVICE_FONTTYPE bit on will be marked with a small ! 30: bitmap image of a printer. When the enumeration windows are ! 31: showing the user can click the left mouse button to copy the ! 32: information about a selected font into the LOGFONT and ! 33: TEXTMETRIC dialogs. The user can dismiss this window ! 34: without changing the dialog boxes by clicking with the right ! 35: mouse button or typing any character. ! 36: ! 37: There are two check boxes on the toolbar. "ShowAllGlyphs" ! 38: toggles between painting the "TextOut" window with all of ! 39: the font's glyphs (from TEXTMETRIC.tmFirstChar to ! 40: TEXTMETRIC.tmLastChar) and writing a shorter string in the ! 41: middle of the window. This latter case is prefered when ! 42: rotating the font, or when writing in directions other than ! 43: left to right. The "SetMapperFlags" check box simply ! 44: maintains a boolean state. This is set into the HPS just ! 45: before the logical font is created for repainting, c.f. ! 46: SetMapperFlags function. ! 47:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.