GetInstalledFontsByCharset

Fonts

Description

Returns a list of the names of fonts that are installed. These font names can be used with the

AddTrueTypeFont and AddSubsettedFont functions.

The list is filtered by the specified character set. To show all fonts, set CharsetIndex to 2 (corresponding to DEFAULT_CHARSET).

Syntax

Delphi

Function TPDFlib.GetInstalledFontsByCharset(CharsetIndex, Options: Integer): WideString;

ActiveX

Function PDFlib::GetInstalledFontsByCharset(CharsetIndex As Long, Options As Long) As String

DLL

const wchar_t* DLGetInstalledFontsByCharset(int InstanceID, int CharsetIndex, int Options);
const char* DLGetInstalledFontsByCharsetA(int InstanceID, int CharsetIndex, int Options);

Parameters

CharsetIndex1 = ANSI 2 = Default 3 = Symbol 4 = Shift JIS 5 = Hangeul 6 = GB2312 7 = Chinese Big 5 8 = OEM 9 = Johab 10 = Hebrew 11 = Arabic 12 = Greek 13 = Turkish 14 = Vietnamese 15 = Thai 16 = East Europe 17 = Russian 18 = Mac 19 = Baltic
Options0 = Font names enclosed in double quotes with comma delimiters 1 = Font names in plain text with CRLF delimiters

Return values

Returns the installed font names filtered by the specified charset. Options 0 returns them as a comma-separated list of quoted names and Options 1 as a CRLF-delimited list; the string is empty when CharsetIndex is outside 1..19.