File:  [WindowsNT SDKs] / mstools / samples / ntfonts / readme
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:20:59 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-jun-1992, HEAD
Microsoft Windows NT Build 297 06-28-1992

Sample: Demonstration of the Win32 Font API Functions

Summary:

The NTFONTS sample is an easy to use, powerful utility which
allows the user to explore the font system.  There is a
toolbar on top of the main frame window with buttons that
allow the following actions:

1.Enumerate all of the fonts installed for the display.
2.Get TEXTMETRIC information.
3.Create a font based on an arbitrary LOGFONT structure.
4.Enumerate all of the fonts available to the default
  printer.

More Information:

The program is designed to provide the user an easy
interface to the API calls related to the font system.  It
will not protect against meaningless values, nor will it
hide system oddities.  Most of the buttons on the toolbar
are self explanatory and represent a single system API.

Pressing the EnumFonts button will show all of the face
names listed horizontally, and each of the fonts within that
face name listed vertically below it.  TrueType, or any
other fonts that do not have a type of RASTER_FONTTYPE will
be marked with a small colored "TT" bitmap.  Fonts that have
the DEVICE_FONTTYPE bit on will be marked with a small
bitmap image of a printer.  When the enumeration windows are
showing the user can click the left mouse button to copy the
information about a selected font into the LOGFONT and
TEXTMETRIC dialogs.  The user can dismiss this window
without changing the dialog boxes by clicking with the right
mouse button or typing any character.

There are two check boxes on the toolbar.  "ShowAllGlyphs"
toggles between painting the "TextOut" window with all of
the font's glyphs (from TEXTMETRIC.tmFirstChar to
TEXTMETRIC.tmLastChar) and writing a shorter string in the
middle of the window.  This latter case is prefered when
rotating the font, or when writing in directions other than
left to right. The "SetMapperFlags" check box simply
maintains a boolean state.  This is set into the HPS just
before the logical font is created for repainting, c.f.
SetMapperFlags function.


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.