THotPDF.NotEmbeddedFonts Property

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Arriba  Anterior  Siguiente

NotEmbeddedFonts enumera las fuentes que no deben incrustarse aunque FontEmbedding esté habilitado

 

Sintaxis Delphi:

property NotEmbeddedFonts: TStringList;

 

Sintaxis C++:

__property Classes::TStringList* NotEmbeddedFonts;

 

Descripción

Utilice NotEmbeddedFonts para mantener fuentes específicas como externas mientras la incrustación permanece habilitada para otras fuentes

 

Esta lista es útil cuando un documento debe incrustar la mayoría de las fuentes por fiabilidad, pero una fuente conocida debe permanecer externa por motivos de licencia o de flujo de trabajo

 

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

 

Véase también: FontEmbedding StandardFontEmulation