Skip to content

# PDFTextGlyph

Namespace: O2S.Components.PDF4NET.Content

Defines a glyph drawn on the PDF page.

    public sealed class PDFTextGlyph

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.

    public PDFPoint[] GlyphCorners { get; internal set; }

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.

    public double Height { get; }

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.

    public string Text { get; internal set; }

Property Value

String
The sequence of characters represented by the glyph.

### TypographicGlyphCorners

Gets the typographic coordinates of the glyph corners.

    public PDFPoint[] TypographicGlyphCorners { get; internal set; }

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.

    public double TypographicHeight { get; }

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.

    public double Width { get; }

Property Value

Double
The width of the glyph.

## Methods

### ToString()

Gets the glyph as string.

    public string ToString()

Returns

String
The glyph as string.