Placeholder for topic body

program FontEmbeddingExample;

{$APPTYPE CONSOLE}

uses

SysUtils, Graphics, Classes, HPDFDoc;

 

var

HPDF: THotPDF;

 

begin

HPDF:= THotPDF.Create(nil );

try

HPDF.AutoLaunch := true;// PDF-fil vil blive vist automatisk

HPDF.FileName :='FontEmbeddingExample.pdf';            

HPDF.FontEmbedding := true;// Skrifttyper vil blive indlejret

HPDF.StandardFontEmulation := false;// Brug de faktiske installerede skrifttypemetrikker

HPDF.BeginDoc;// Opret PDF-fil

HPDF.CurrentPage.SetFont('Calibri', [], 12 );                // Vælg målskrifttypen

HPDF.CurrentPage.TextOut(10, 10, 0, 'Embedded font output sample');// Udskriv tekst

HPDF.EndDoc;// Luk PDF-fil

finally

HPDF.Free;

end;

end.