AddTrueTypeSubsettedFont
Testo, font
Descrizione
Aggiunge al documento un font TrueType in sottoinsieme
Per Options 0 e 1 il sottoinsieme del font è fisso e non può essere modificato
Per Options 2 e 3 il sottoinsieme del font può essere modificato Simile a 0 ma aggiornabile usando
UpdateTrueTypeSubsettedFont
Sintassi
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 Long
DLL
int DLAddTrueTypeSubsettedFont(int InstanceID, const wchar_t* FontName, const wchar_t* SubsetChars, int Options);
int DLAddTrueTypeSubsettedFontA(int InstanceID, const char* FontName, const char* SubsetChars, int Options);
Parametri
| FontName | Il nome del font TrueType da suddividere in sottoinsiemi |
|---|---|
| SubsetChars | Stringa di caratteri per il subset. |
| Options | 0=MS PlatformID, Unicode 1=Unicode PlatformID, "don't care" 2=Come 0 aggiornabile con UpdateTrueTypeSubsettedFont 3=Come 1 aggiornabile 4=Come 2 con aggiornamento automatico 5=Come 3 automatico |
Valori restituiti
| 0 | Non è stato possibile aggiungere il font sottoinsieme oppure il parametro CharSet era fuori intervallo |
|---|---|
| Non-zero | ID del font aggiunto, utilizzabile con SelectFont |