类 CffFontMetrics

CffFontMetrics class

表示 CFF 字体度量。

public class CffFontMetrics : FontMetrics

属性

名称描述
override Ascender { get; }获取 Ascender 值。
override Descender { get; }获取 Descender 值。
override FontBBox { get; }获取 FontBBox 值。
override FontMatrix { get; }获取 FontMatrix 值。
IsFixedPitch { get; }获取 IsFixedPitch 值。
virtual LineGap { get; }获取 LineGap 值。
virtual TypoAscender { get; set; }获取 TypoAscender 值。
virtual TypoDescender { get; set; }获取 TypoDescender 值。
virtual TypoLineGap { get; }获取 TypoLineGap 值。
override UnitsPerEM { get; }获取 UnitsPerEM 值。

方法

名称描述
virtual GetAscender(double)返回特定字体大小的升部值。
virtual GetDescender(double)返回特定字体大小的降部值。
GetFontMatrixForGlyph(GlyphId)计算由 id 指定的字形的变换矩阵。
virtual GetGlyphBBox(GlyphId)返回字形 BBox。若字形未定义 BBox,则返回 FontBBox。可能会被特定字体编码的继承者覆盖。
override GetGlyphWidth(GlyphId)返回字形宽度。可能被特定字体编码的继承者覆盖。
virtual GetKerningValue(GlyphId, GlyphId)返回字形对的字距值。
virtual GetTypoAscender(double)返回特定字体大小的降部值。
virtual GetTypoDescender(double)返回特定字体大小的降部值。
virtual GetTypoLineGap(double)返回特定字体大小的行间距值。
override MeasureString(string, double)测量字符串并返回字符串宽度。
override SetGlyphWidth(GlyphId, double)设置字形宽度。

另见