类 FontMetrics

FontMetrics class

表示 Font 度量。

public abstract class FontMetrics : IFontMetrics

属性

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

方法

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

另见