THotPDF.NotEmbeddedFonts Propiedad

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Arriba  Anterior  Siguiente

NotEmbeddedFonts enumera las fuentes que no deben incrustarse incluso cuando FontEmbedding está habilitado

 

Sintaxis Delphi:

property NotEmbeddedFonts: TStringList;

 

Sintaxis C++:

__property Classes::TStringList* NotEmbeddedFonts;

 

Descripción

Usa NotEmbeddedFonts para mantener externas fuentes específicas mientras la incrustación sigue habilitada para las demás fuentes

 

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

 

Ejemplo de código

HPDF.FontEmbedding := true;                     // Habilita la incrustación de fuentes de forma predeterminada
HPDF.NotEmbeddedFonts.Add( 'Arial' );           // Excluye Arial de la incrustación
HPDF.NotEmbeddedFonts.Add( 'Times New Roman' ); // Excluye Times New Roman de la incrustación

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

 

Ver también: FontEmbedding StandardFontEmulation