TPDFlibGlyphMetrics

Data types, fonts, metrics

Description

Stores the unscaled horizontal advance, left side bearing and glyph bounding box returned by GetFontGlyphOutline

Declaration

TPDFlibGlyphMetrics= Record
GlyphIndex: Integer;
UnitsPerEm: Integer;
AdvanceWidth: Integer;
LeftSideBearing: Integer;
XMin: Integer;
YMin: Integer;
XMax: Integer;
YMax: Integer;
End;

Fields

GlyphIndexThe zero-based glyph index that was extracted
UnitsPerEmThe font coordinate units in one em
AdvanceWidthThe raw horizontal advance from the font's hmtx table
LeftSideBearingThe raw horizontal left side bearing from the hmtx table
XMin, YMin, XMax and YMaxThe raw glyph bounding box from the glyf table

See also

GetFontGlyphOutline, TPDFlibGlyphPath