PDFium Delphi Component Docs

AddStandardFontText メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
14 個の標準 PDF フォントのいずれかでテキストを描画し、フォントプログラムを埋め込みません

構文

procedure AddStandardFontText(const Text: WString; StandardFont: TPdfStandardFont; FontSize: Single; X, Y: Double; Color: TColor; Alpha: Byte; Angle: Double = 0.0);

TextWString. Text to draw.
StandardFontTPdfStandardFont. One of the 14 standard faces: sfCourier, sfCourierBold, sfCourierBoldOblique, sfCourierOblique, sfHelvetica, sfHelveticaBold, sfHelveticaBoldOblique, sfHelveticaOblique, sfTimesRoman, sfTimesBold, sfTimesBoldItalic, sfTimesItalic, sfSymbol, sfZapfDingbats.
FontSizeSingle. Text size in points.
X, YDouble. Position of the text origin in PDF page units, measured from the bottom-left corner of the page.
ColorTColor. Fill colour of the glyphs.
AlphaByte. Fill opacity, 0 transparent through $FF opaque.
AngleDouble. Rotation of the text baseline in degrees, counter-clockwise. Defaults to 0.

説明

見つけたシステムフォントを埋め込む AddText とは異なり、これはフォントプログラムを埋め込みません。すべての適合リーダーが既にこれらの書体を備えているため、ファイルは小さく保たれます

トレードオフは適合性です。PDF/A と PDF/X はすべてのフォントの埋め込みを要求するため、これらのプロファイル向けの出力は代わりに AddText を使用する必要があります

書体名は ISO 32000-1 Table 109 の基本フォント名と照合されるため、列挙は標準 14 フォントに 1 対 1 で対応します

Pdf.AddStandardFontText('Draft', sfHelveticaBold, 24, 72, 720,
  clGray, $80);
Pdf.UpdatePage;

関連項目

AddText, AddShapedText, AddCidType2Text, FontSize