AddTrueTypeFontFromFile

Texto, Tipos de letra

Descrição

Incorpora no documento um tipo de letra TrueType, OpenType/TrueType ou OpenType/CFF. O tipo de letra TrueType é especificado pelo nome do ficheiro e não tem de estar instalado como tipo de letra do sistema.

Esta função é funcionalmente idêntica a AddOpenTypeFontFromFile

Embeds a TrueType, OpenType/TrueType or OpenType/CFF font into the document. The TrueType font is specified by the file name and does not have to be installed as a system font.

This function is functionally identical to AddOpenTypeFontFromFile.

For TrueType and OpenType/TrueType fonts, a temporary file must be created during this process, call SetTempPath to specify where this temporary file should be created.

Sintaxe

Delphi

Function TPDFlib.AddTrueTypeFontFromFile(Const FileName: WideString): Integer;

ActiveX

Function PDFlib::AddTrueTypeFontFromFile(FileName As String) As Long

DLL

int DLAddTrueTypeFontFromFile(int InstanceID, const wchar_t * FileName);

Parâmetros

FileNameO caminho completo e o nome do ficheiro do tipo de letra TrueType a incorporar

Valores devolvidos

0Não foi possível incorporar o tipo de letra O ID do tipo de letra adicionado com êxito. Este ID pode ser utilizado com a função SelectFont para selecionar o tipo de letra
Non-zero