Adding TrueType, Raster, or Vector Fonts to System |
Q130459
FONTINST is a sample application in the Microsoft Software Library that
demonstrates how to programmatically add a TrueType, raster, or vector font
to the system.
When working with a TrueType font file (.ttf file), FONTINST creates a .fot
file and moves the specified .ttf file to the Windows system directory. For
a raster or vector font file (.fon file), FONTINST moves the .fon file to
the Windows system directory. After the font file has been moved to the
system directory, FONTINST adds the font to the system by using the
AddFontResource() API. Then it adds font information to the [fonts]
section of the Win.ini file so that the font is automatically loaded every
time Windows starts. For example, the following line is added to the
Win.ini file when FONTINST adds the Arial.ttf file to the system:
Arial (TrueType)=ARIAL.FOT The following file is available for download from the Microsoft Software Library:
~ FONTINST.EXEFor more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services
Additional query words: softlib kbgraphic kbfile
Keywords : kbfile kbgraphic kbOSWinNT350 kbOSWinNT351 kbSDKWin32 kbOSWin95 kbDSupport
Issue type : kbinfo
Technology : kbAudDeveloper kbSDKSearch kbWin32sSearch kbWin32API kbWinSDKSearch
|
Last Reviewed: December 16, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |