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
decimalcomments
IReadOnlyList<string>metricSets
intfontName
stringfullName
stringfamilyName
stringweight
stringboundingBox
PdfRectangleversion
stringnotice
stringencodingScheme
stringmappingScheme
intescapeCharacter
intcharacterSet
stringcharacters
intisBaseFont
boolvVector
AdobeFontMetricsVectorisFixedV
boolcapHeight
decimalxHeight
decimalascender
decimaldescender
decimalunderlinePosition
decimalunderlineThickness
decimalitalicAngle
decimalcharacterWidth
AdobeFontMetricsCharacterSizehorizontalStemWidth
decimalverticalStemWidth
decimalcharacterMetrics
IReadOnlyDictionary<string, AdobeFontMetricsIndividualCharacterMetric>
Properties
AfmVersion
Version of the Adobe Font Metrics specification used to generate this file.
public decimal AfmVersion { get; }
Property Value
Ascender
Usually the y-value of the top of lowercase 'd'.
public decimal Ascender { get; }
Property Value
BoundingBox
Minimum bounding box for all characters in the font.
public PdfRectangle BoundingBox { get; }
Property Value
CapHeight
Usually the y-value of the top of capital 'H'.
public decimal CapHeight { get; }
Property Value
CharacterMetrics
Metrics for the individual characters.
public IReadOnlyDictionary<string, AdobeFontMetricsIndividualCharacterMetric> CharacterMetrics { get; }
Property Value
CharacterSet
Describes the character set of this font.
public string CharacterSet { get; }
Property Value
CharacterWidth
If present all characters have this width and height.
public AdobeFontMetricsCharacterSize CharacterWidth { get; }
Property Value
Characters
The number of characters in this font.
public int Characters { get; }
Property Value
Comments
Any comments in the file.
public IReadOnlyList<string> Comments { get; }
Property Value
Descender
Usually the y-value of the bottom of lowercase 'p'.
public decimal Descender { get; }
Property Value
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
EscapeCharacter
The bytes value of the escape-character used if this font is escape-mapped.
public int EscapeCharacter { get; }
Property Value
FamilyName
Font family name.
public string FamilyName { get; }
Property Value
FontName
Font name.
public string FontName { get; }
Property Value
FullName
Font full name.
public string FullName { get; }
Property Value
HorizontalStemWidth
Horizontal stem width.
public decimal HorizontalStemWidth { get; }
Property Value
IsBaseFont
Whether this is a base font.
public bool IsBaseFont { get; }
Property Value
IsFixedV
Whether VVector is the same for every character in this font.
public bool IsFixedV { get; }
Property Value
ItalicAngle
Angle in degrees counter-clockwise from the vertical of the vertical linea. Zero for non-italic fonts.
public decimal ItalicAngle { get; }
Property Value
MappingScheme
Describes the mapping scheme.
public int MappingScheme { get; }
Property Value
MetricSets
The writing directions described by these metrics.
public AdobeFontMetricsWritingDirections MetricSets { get; }
Property Value
Notice
Font name trademark or copyright notice.
public string Notice { get; }
Property Value
UnderlinePosition
Distance from the baseline for underlining.
public decimal UnderlinePosition { get; }
Property Value
UnderlineThickness
Width of the line for underlining.
public decimal UnderlineThickness { get; }
Property Value
VVector
A vector from the origin of writing direction 0 to direction 1.
public AdobeFontMetricsVector VVector { get; }
Property Value
Version
Font program version identifier.
public string Version { get; }
Property Value
VerticalStemWidth
Vertical stem width.
public decimal VerticalStemWidth { get; }
Property Value
Weight
Font weight.
public string Weight { get; }
Property Value
XHeight
Usually the y-value of the top of lowercase 'x'.
public decimal XHeight { get; }
Property Value
Methods
ToString()
public override string ToString()