THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Topo  Anterior  Próxima

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

 

Sintaxe Delphi:

property NotEmbeddedFonts: TStringList;

 

Sintaxe C++:

__property Classes::TStringList* NotEmbeddedFonts;

 

Descrição

Use NotEmbeddedFonts para manter fontes específicas externas enquanto o embutimento permanece habilitado para as demais fontes.

 

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

 

Exemplo de código

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' );

 

See also: FontEmbedding,  StandardFontEmulation