home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 3_2004-2005.ISO / Data / Zips / AllAPI_API179141992004.psc / API / A / AddFontResource.api < prev    next >
Encoding:
INI File  |  2004-08-30  |  1.6 KB  |  45 lines

  1. [NAME]
  2. AddFontResource
  3. [DESCRIPTION]
  4. The AddFontResource function adds the font resource from the specified file to the system font table. The font can subsequently be used for text output by any Win32-based application.
  5. [DECLARATION]
  6. Declare Function AddFontResource Lib "gdi32" Alias "AddFontResourceA" (ByVal lpFileName As String) As Long
  7. [VBNET]
  8. N/A
  9. [OS]
  10. Requires Windows NT 3.1 or later; Requires Windows 95 or later
  11. [LIBRARY]
  12. Gdi32
  13. [PARAMETERS]
  14. ╖ lpszFilename
  15. [in] Pointer to a null-terminated character string that contains a valid font file name. This parameter can specify any of the following files.
  16. .fon
  17.  Font resource file.
  18. .fnt
  19.  Raw bitmap font file.
  20. .ttf
  21.  Raw TrueType file.
  22. .ttc
  23.  Windows 95/98 East Asian and Windows NT: TrueType font collection.
  24. .fot
  25.  TrueType resource file.
  26. .otf
  27.  PostScript OpenType font.
  28. .mmm
  29.  multiple master Type1 font resource file. It must be used with .pfm and .pfb files.
  30. .pfb
  31.  Type 1 font bits file. It is used with a .pfm file.
  32. .pfm
  33.  Type 1 font metrics file. It is used with a .pfb file.
  34.  
  35. Windows 2000: To add a font whose information comes from several resource files, have lpszFileName point to a string with the file names separated by a | --for example, abcxxxxx.pfm | abcxxxxx.pfb.
  36. [RETURNS]
  37. If the function succeeds, the return value specifies the number of fonts added. 
  38.  
  39. If the function fails, the return value is zero. To get extended error information, call GetLastError. 
  40. [EXAMPLES]
  41. FontResource*6B5ADB0FB7D79A23DE24A048C9E5E310.html
  42. AddFontResource*6DA75DAC29F25179DB3CE0F0583B791C.html
  43. [RELATED]
  44. RemoveFontResource
  45.