The information in this article applies to:
SUMMARY
The HPPLOT plotter driver does not support the plotting of TrueType fonts.
This driver only plots fonts that are native to the plotter or are Windows
vector fonts. It is sometimes desirable to be able to plot a larger range
of fonts. Incorporating the use of TrueType fonts on a plotter greatly
increases the range of fonts a plotter can draw.
MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: Ttplot.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. This sample demonstrates how to draw TrueType characters on a plotter with the MoveTo() and LineTo() functions. First, it retrieves a glyph's curve data points in the rasterizer's native format by calling GetGlyphOutline() with GGO_NATIVE specified in the third parameter. It must call this function twice. The first time the function is called, NULL is placed in the lpBuffer parameter so the required buffer size to hold the data is returned. The second time GetGlyphOutline() is called, the native data is placed in the buffer specified by the lpBuffer parameter. A glyph outline is returned as a series of contours, each of which can be a straight line or a quadratic curve. The TTPLOT sample interprets the data returned from GetGlyphOutline() and then draws the lines specified by calling the MoveTo() and LineTo() functions on the plotter device context. The quadratic curves, as well as the lines, are both drawn as normal straight lines. A description of this native curve data can be found on pages 382-383 of the Windows SDK "Programmer's reference, Volume 2: Functions" manual or by searching for the GetGlyphOutline() function in the "Win31 Help" Windows help file. This sample also lets you choose a desired TrueType font by bringing up the ChooseFont() common dialog box. Before drawing the font, the plotter DC is placed in the MM_ISOTROPIC mode so the fonts will be the same size on the screen as they are on the plotter. Additional query words: PLOT HPPLOT TRUETYPE softlib TTPLOT.EXE
Keywords : kbfile kbsample kb16bitonly kbWinOS310 GdiPrn |
Last Reviewed: December 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |