THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Topo  Anterior  Próximo
Placeholder for parapic body

NotEmbeddedFonts lista as fontes que não devem ser incorporadas mesmo quando FontEmbedding está habilitado

 

Sintaxe Delphi:

property NotEmbeddedFonts: TStringList;

 

Sintaxe C++:

__property Classes::TStringList* NotEmbeddedFonts;

 

Descrição

Utilize NotEmbeddedFonts para manter fontes específicas externas enquanto a incorporação continua habilitada para outras fontes

 

Esta lista é útil quando um documento deve incorporar a maioria das fontes por confiabilidade, mas uma fonte conhecida deve permanecer externa por razões de licença ou de fluxo de trabalho

 

Code Example

HPDF.FontEmbedding := true;                     // Enable font embedding by default

HPDF.NotEmbeddedFonts.Add( 'Arial' );           // Exclude Arial from embedding

HPDF.NotEmbeddedFonts.Add( 'Times New Roman' ); // Exclude Times New Roman from embedding



HPDF.CurrentPage.SetFont( 'Arial', [], 12 );

HPDF.CurrentPage.TextOut( 100, 100, 'Arial will not be embedded' );



HPDF.CurrentPage.SetFont( 'Courier New', [], 12 );

HPDF.CurrentPage.TextOut( 100, 80, 'Courier New will be embedded' );

 

Veja também: FontEmbedding StandardFontEmulation