PDFTextGlyph¶
Namespace: O2S.Components.PDF4NET.Content
Defines a glyph drawn on the PDF page.
Inheritance Object → PDFTextGlyph
Remarks
A glyph is the graphic visual representation of one or more characters. Usually there is a one-to-one correspondence between glyphs and characters but in case of ligatures a glyph can represent 2 or 3 characters.
Properties¶
GlyphCorners¶
Gets the coordinates of the glyph corners.
Property Value
PDFPoint[]
The coordinates on the page of the glyphs's corners.
Remarks
The order of the corners in the array is the following: lower left, lower right, upper right, upper left. These corners match the text baseline for the lower corners. The PDFTextGlyph.TypographicGlyphCorners property considers the font's Descent for the lower corners.
Height¶
Gets the glyph height.
Property Value
Double
The height of the glyph.
Remarks
The height is computed based on PDFTextGlyph.GlyphCorners property.
Text¶
Gets the text corresponding to the glyph.
Property Value
String
The sequence of characters represented by the glyph.
TypographicGlyphCorners¶
Gets the typographic coordinates of the glyph corners.
Property Value
PDFPoint[]
The typographic coordinates on the page of the glyphs's corners.
Remarks
The order of the typographic corners in the array is the following: lower left, lower right, upper right, upper left. The typographic corners consider the font's Descent for the lower corners. The PDFTextGlyph.GlyphCorners property considers the text baseline for the lower corners.
TypographicHeight¶
Gets the glyph typographic height.
Property Value
Double
The typographic height of the glyph.
Remarks
The typographic height is computed based on PDFTextGlyph.TypographicGlyphCorners property.
Width¶
Gets the glyph width.
Property Value
Double
The width of the glyph.
Methods¶
ToString()¶
Gets the glyph as string.
Returns
String
The glyph as string.