PDFium Delphi Component Docs

TextObjectGlyphWidth Méthode

Composant: TPdf  ·  Unit: PDFium
Renvoie l’avance native du glyphe d’un objet texte à la taille de police demandée

Syntaxe

function TextObjectGlyphWidth(Index, GlyphIndex: Integer; FontSize: Single): Single;

Description

TextObjectGlyphWidth interroge l’objet texte natif à Index pour obtenir la largeur d’avance du glyphe GlyphIndex, mise à l’échelle de FontSize en unités utilisateur PDF

Lève EPdfError lorsque l’index n’est pas un objet texte, que l’index de glyphe est hors plage ou que FontSize n’est pas positif

Remarques

Exemple

W := Pdf1.TextObjectGlyphWidth(ObjIdx, GlyphIdx, 12);

Voir aussi

TextObjectGlyphOutline, TextObjectFontSize, FontSize