BOOL CreateScalableFontResource(fulHidden, lpszResourceFile, lpszFontFile, lpszCurrentPath) | |||||
ULONG fulHidden; | /* flag for read-only embedded font | */ | |||
LPCTSTR lpszResourceFile; | /* filename for font resource | */ | |||
LPCTSTR lpszFontFile; | /* filename for scalable font | */ | |||
LPTSTR lpszCurrentPath; | /* path to font file | */ |
The CreateScalableFontResource function creates a font resource file containing the font directory information and the font module name for a specified scalable font file.
fulHidden
Specifies whether the font is a read-only embedded font. This parameter can be one of the following values:
Value | Meaning |
0 | The font has read-write permission. |
1 | The font has read-only permission and should be hidden from other applications in the system. When this flag is set, the font is not enumerated by the EnumFonts or EnumFontFamilies function. |
lpszResourceFile
Points to a null-terminated string specifying the name of the font resource file that this function creates.
lpszFontFile
Points to a null-terminated string specifying the name of the scalable font file this function uses to create the resource font file.
lpszCurrentPath
Points to a null-terminated string specifying the path to the scalable font file.
The return value is TRUE if the function is successful. Otherwise, it is FALSE.
The CreateScalableFontResource function is used by applications that install TrueType fonts. An application uses the CreateScalableFontResource function to create a font resource file (typically with a .FOT filename extension) and then the AddFontResource function to install the font. The TrueType font file (typically with a .TTF filename extension) must be in the SYSTEM subdirectory of the WINDOWS directory to be used by the AddFontResource function.
The CreateScalableFontResource function currently supports only TrueType technology scalable fonts.
AddFontResource