THotPDF.NotEmbeddedFonts 속성

 

THotPDF.NotEmbeddedFonts

THotPDF

 

Top  Previous  Next

NotEmbeddedFonts는 FontEmbedding이 켜져 있어도 임베드하면 안 되는 폰트의 목록입니다.

 

Delphi syntax:

property NotEmbeddedFonts: TStringList;

 

C++ syntax:

__property Classes::TStringList* NotEmbeddedFonts;

 

Description

다른 폰트는 계속 임베드하면서 특정 폰트만 외부 참조로 남기려면 NotEmbeddedFonts를 사용하세요.

 

안정성을 위해 대부분의 폰트를 임베드하되, 라이선스나 워크플로상의 이유로 특정 폰트만 외부에 두어야 하는 문서에 유용한 목록입니다.

 

Code Example

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

 

See also: FontEmbedding,  StandardFontEmulation