Skip to content

PDFFontMetrics

Namespace: O2S.Components.PDF4NET.Graphics

Provides the metrics for a font object.

public class PDFFontMetrics

Inheritance ObjectPDFFontMetrics

Remarks

The font metrics are provided in unscaled glyph units.

Properties

Ascent

Gets the ascent of the font.

public double Ascent { get; }

Property Value

Double
A double value specifying the maximum height above the baseline reached by glyphs in this font, excluding the height of glyphs for accented characters.


AverageWidth

Gets the average width of glyphs in the font.

public double AverageWidth { get; }

Property Value

Double
A double value specifying the average width of glyphs in the font.


BoundingBox

Gets the font's bounding box.

public PDFStandardRectangle BoundingBox { get; }

Property Value

PDFStandardRectangle
The font bounding box.


CapHeight

Gets the capHeight of the font.

public double CapHeight { get; }

Property Value

Double
A double value specifying the vertical coordinate of the top of flat capital letters, measured from the baseline.


Descent

Gets the descent of the font.

public double Descent { get; }

Property Value

Double
A double value specifying the maximum depth below the baseline reached by glyphs in this font. This value is a negative number.


Leading

Gets the leading of the font.

public double Leading { get; }

Property Value

Double
A double value specifying the desired spacing between baselines of consecutives lines of text.


MaxWidth

Gets the maximum width of glyphs in the font.

public double MaxWidth { get; }

Property Value

Double
A double value specifying the maximum width of glyphs in the font.


Name

Gets the Postscript name of the font.

public string Name { get; }

Property Value

String
The name of the font.


SpaceWidth

Gets the width of space character.

public double SpaceWidth { get; }

Property Value

Double
A double value specifying the width of the space character.


StemH

Gets the horizontal stem of the font.

public double StemH { get; }

Property Value

Double
A double value specifying the thickness, measured invertically, of the dominant horizontal stems of glyphs in the font.


StemV

Gets the vertical stem of the font.

public double StemV { get; }

Property Value

Double
A double value specifying the thickness, measure horizontally, of the dominant vertical stems of glyphs in the font.


XHeight

Gets the x height of the font.

public double XHeight { get; }

Property Value

Double
A double value specifying the vertical coordinate of the top of flat non-ascending lowercase letters (like letter x), measured from the baseline.