THotPDF.NotEmbeddedFonts Property

Questa lista e utile quando un documento deve incorporare la maggior parte dei font per affidabilita, ma un font noto deve restare esterno per motivi di licenza o workflow

 

Example di codice

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

 

Vedi anche: FontEmbedding StandardFontEmulation