Quando FontEmbedding e abilitato, HotPDF risolve il nome PostScript del programma font TrueType incorporato e scrive nomi font PDF corrispondenti. Questo mantiene coerenti i dati /BaseFont e /FontDescriptor anche quando il nome face Windows passato a SetFont e un alias o un face sostituito

 

Example di codice

program TextOut;
{$APPTYPE CONSOLE}
uses
    SysUtils, Graphics, Classes, HPDFDoc;

var
    HPDF: THotPDF;

begin
    HPDF := THotPDF.Create ( nil ) ;
    try
        HPDF.AutoLaunch := true;
        HPDF.FileName := 'TextOut.pdf';
        HPDF.FontEmbedding := true;
        HPDF.StandardFontEmulation := false;
        HPDF.BeginDoc;
        HPDF.CurrentPage.SetFont('Calibri', [fsBold], 24);
        HPDF.CurrentPage.TextOut(10, 10, 0, 'Embedded font output');
        HPDF.EndDoc;
    finally
        HPDF.Free;
    end;
end.

 

Vedi anche: TextOut