How to Use the TrueType Fonts Built into the Printer

Last reviewed: January 5, 1995
Article ID: Q121661
The information in this article applies to:
  • Microsoft Windows Device Development Kit (DDK) for Windows, version 3.1

SUMMARY

Some printers have TrueType (TT) fonts built into the printer. Printer drivers can increase their throughput by using the printer's internal TrueType device fonts instead of downloading the fonts to the printer.

MORE INFORMATION

To get an accurate representation of printer supported TrueType fonts on the display, there must be an associated TT font that is installed on the system. The printer manufacturer or driver developer has the responsibility of providing TT fonts that match the printer's TT fonts. The TT fonts must be installed by using the Control Panel Fonts or by using the respective Windows API AddFontResource function.

The printer driver can then use the Enginexxxx functions that are documented in the Windows version 3.1 DDK's DDAG31WH.HLP file.

The Enginexxxx functions are:

   EngineDeleteFont
   EngineEnumerateFont
   EngineGetCharWidth
   EngineGetGlyphBmp
   EngineRealizeFont
   EngineSetFontContext

The Enginexxxx functions are entry points into the Windows TT rasterizer. These functions allow a printer driver to treat TT fonts as device fonts. By using its EnumDFonts() function, a printer driver can enumerate all the TT fonts on the system, compare them with the printer's TT fonts and return only the TT fonts that match. Then in the printer driver's ExtTextOut() function, the Enginexxxx realized TT font can be mapped to the printer's TT font and the associated printer escapes can be sent to the printer instead of downloading a load of raster data.


Additional reference words: 3.10 glyph outline
KBCategory: kbtool kbprg
KBSubcategory:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 5, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.