类 TtfFontMetrics

TtfFontMetrics class

表示 TTF 字体度量。

public class TtfFontMetrics : FontMetrics

属性

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

方法

名称描述
virtual GetAscender(double)返回特定字体大小的升部值。
virtual GetDescender(double)返回特定字体大小的降部值。
virtual GetGlyphBBox(GlyphId)返回字形 BBox。若字形未定义 BBox,则返回 FontBBox。可能会被特定字体编码的继承者覆盖。
override GetGlyphWidth(GlyphId)根据字形 ID 返回字形宽度。
override GetKerningValue(GlyphId, GlyphId)返回字形对的字距值。
virtual GetTypoAscender(double)返回特定字体大小的降部值。
virtual GetTypoDescender(double)返回特定字体大小的降部值。
virtual GetTypoLineGap(double)返回特定字体大小的行间距值。
override MeasureString(string, double)测量字符串并返回字符串宽度。
MeasureString(uint[], double)测量以字符代码数组表示的文本并返回字符串宽度。
override SetGlyphWidth(GlyphId, double)设置字形宽度。

另见