Table of Contents

Class AdobeFontMetrics

Namespace
UglyToad.PdfPig.Fonts.AdobeFontMetrics
Assembly
UglyToad.PdfPig.Fonts.dll

The global metrics for a font program and the metrics of each character.

public class AdobeFontMetrics
Inheritance
AdobeFontMetrics
Inherited Members

Constructors

AdobeFontMetrics(decimal, IReadOnlyList<string>, int, string, string, string, string, PdfRectangle, string, string, string, int, int, string, int, bool, AdobeFontMetricsVector, bool, decimal, decimal, decimal, decimal, decimal, decimal, decimal, AdobeFontMetricsCharacterSize, decimal, decimal, IReadOnlyDictionary<string, AdobeFontMetricsIndividualCharacterMetric>)

Create a new AdobeFontMetrics.

public AdobeFontMetrics(decimal afmVersion, IReadOnlyList<string> comments, int metricSets, string fontName, string fullName, string familyName, string weight, PdfRectangle boundingBox, string version, string notice, string encodingScheme, int mappingScheme, int escapeCharacter, string characterSet, int characters, bool isBaseFont, AdobeFontMetricsVector vVector, bool isFixedV, decimal capHeight, decimal xHeight, decimal ascender, decimal descender, decimal underlinePosition, decimal underlineThickness, decimal italicAngle, AdobeFontMetricsCharacterSize characterWidth, decimal horizontalStemWidth, decimal verticalStemWidth, IReadOnlyDictionary<string, AdobeFontMetricsIndividualCharacterMetric> characterMetrics)

Parameters

afmVersion decimal
comments IReadOnlyList<string>
metricSets int
fontName string
fullName string
familyName string
weight string
boundingBox PdfRectangle
version string
notice string
encodingScheme string
mappingScheme int
escapeCharacter int
characterSet string
characters int
isBaseFont bool
vVector AdobeFontMetricsVector
isFixedV bool
capHeight decimal
xHeight decimal
ascender decimal
descender decimal
underlinePosition decimal
underlineThickness decimal
italicAngle decimal
characterWidth AdobeFontMetricsCharacterSize
horizontalStemWidth decimal
verticalStemWidth decimal
characterMetrics IReadOnlyDictionary<string, AdobeFontMetricsIndividualCharacterMetric>

Properties

AfmVersion

Version of the Adobe Font Metrics specification used to generate this file.

public decimal AfmVersion { get; }

Property Value

decimal

Ascender

Usually the y-value of the top of lowercase 'd'.

public decimal Ascender { get; }

Property Value

decimal

BoundingBox

Minimum bounding box for all characters in the font.

public PdfRectangle BoundingBox { get; }

Property Value

PdfRectangle

CapHeight

Usually the y-value of the top of capital 'H'.

public decimal CapHeight { get; }

Property Value

decimal

CharacterMetrics

Metrics for the individual characters.

public IReadOnlyDictionary<string, AdobeFontMetricsIndividualCharacterMetric> CharacterMetrics { get; }

Property Value

IReadOnlyDictionary<string, AdobeFontMetricsIndividualCharacterMetric>

CharacterSet

Describes the character set of this font.

public string CharacterSet { get; }

Property Value

string

CharacterWidth

If present all characters have this width and height.

public AdobeFontMetricsCharacterSize CharacterWidth { get; }

Property Value

AdobeFontMetricsCharacterSize

Characters

The number of characters in this font.

public int Characters { get; }

Property Value

int

Comments

Any comments in the file.

public IReadOnlyList<string> Comments { get; }

Property Value

IReadOnlyList<string>

Descender

Usually the y-value of the bottom of lowercase 'p'.

public decimal Descender { get; }

Property Value

decimal

EncodingScheme

String indicating the default encoding vector for this font program. Common ones are AdobeStandardEncoding and JIS12-88-CFEncoding. Special font programs might state FontSpecific.

public string EncodingScheme { get; }

Property Value

string

EscapeCharacter

The bytes value of the escape-character used if this font is escape-mapped.

public int EscapeCharacter { get; }

Property Value

int

FamilyName

Font family name.

public string FamilyName { get; }

Property Value

string

FontName

Font name.

public string FontName { get; }

Property Value

string

FullName

Font full name.

public string FullName { get; }

Property Value

string

HorizontalStemWidth

Horizontal stem width.

public decimal HorizontalStemWidth { get; }

Property Value

decimal

IsBaseFont

Whether this is a base font.

public bool IsBaseFont { get; }

Property Value

bool

IsFixedV

Whether VVector is the same for every character in this font.

public bool IsFixedV { get; }

Property Value

bool

ItalicAngle

Angle in degrees counter-clockwise from the vertical of the vertical linea. Zero for non-italic fonts.

public decimal ItalicAngle { get; }

Property Value

decimal

MappingScheme

Describes the mapping scheme.

public int MappingScheme { get; }

Property Value

int

MetricSets

The writing directions described by these metrics.

public AdobeFontMetricsWritingDirections MetricSets { get; }

Property Value

AdobeFontMetricsWritingDirections

Notice

Font name trademark or copyright notice.

public string Notice { get; }

Property Value

string

UnderlinePosition

Distance from the baseline for underlining.

public decimal UnderlinePosition { get; }

Property Value

decimal

UnderlineThickness

Width of the line for underlining.

public decimal UnderlineThickness { get; }

Property Value

decimal

VVector

A vector from the origin of writing direction 0 to direction 1.

public AdobeFontMetricsVector VVector { get; }

Property Value

AdobeFontMetricsVector

Version

Font program version identifier.

public string Version { get; }

Property Value

string

VerticalStemWidth

Vertical stem width.

public decimal VerticalStemWidth { get; }

Property Value

decimal

Weight

Font weight.

public string Weight { get; }

Property Value

string

XHeight

Usually the y-value of the top of lowercase 'x'.

public decimal XHeight { get; }

Property Value

decimal

Methods

ToString()

public override string ToString()

Returns

string