THotPDF.FontEmbedding Property
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.FontEmbedding

THotPDF

 

Top  Previous  Next

Determines whether the PDF document is use font embedding.

 

Delphi syntax:

property FontEmbedding: Boolean;

 

C++ syntax:

__property bool FontEmbedding;

 

Description

A font can be embedded in a PDF file as data. Set FontEmbedding to true for enable font embedding or set FontEmbedding to false for disable font embedding.

 

Code Example

HPDF.FontEmbedding := true;                     // Enable font embedding in PDF
HPDF.CurrentPage.SetFont( 'Arial', [], 12 );
HPDF.CurrentPage.TextOut( 100, 100, 'This text uses embedded Arial font' );

HPDF.FontEmbedding := false;                    // Disable font embedding
HPDF.CurrentPage.SetFont( 'Times New Roman', [], 12 );
HPDF.CurrentPage.TextOut( 100, 80, 'This text uses non-embedded Times New Roman' );

 

See also: NotEmbeddedFonts StandardFontEmulation

Copyright©2007-2025 losLab.com