AddTrueTypeSubsettedFont
Text, Fonts
Description
Adds a subsetted TrueType font to the document.
For Options 0 and 1 the font subset is fixed and cannot be changed.
For Options 2 and 3 the font subset can be changed Similar to 0 but subset can be updated using
UpdateTrueTypeSubsettedFont
Syntax
Delphi
function TPDFlib.AddTrueTypeSubsettedFont(Const FontName, SubsetChars: WideString; Options: Integer): Integer;ActiveX
Function PDFlib::AddTrueTypeSubsettedFont(FontName As String, SubsetChars As String, Options As Long) As LongDLL
int DLAddTrueTypeSubsettedFont(int InstanceID, wchar_t * FontName, wchar_t * SubsetChars, int Options);Parameters
| FontName | The name of the TrueType font that must be subsetted. |
|---|---|
| SubsetChars | A string containing the characters that should be included in the font subset. 0=MS PlatformID, Unicode charset 1=Unicode PlatformID, "don't care" charset 2=Similar to 0 but subset can be updated using UpdateTrueTypeSubsettedFont 3=Similar to 1 but subset can be updated using UpdateTrueTypeSubsettedFont 4=Similar to 2 but subset is automatically updated 5=Similar to 3 but subset is automatically updated |
| Options |
Return values
| 0 | The subsetted font could not be added or the CharSet parameter was out of range |
|---|---|
| Non-zero | The ID of the font that was successfully added. This ID can be used with the SelectFont function to select the font |