FamilyTypeface 类

定义

指定 FontFamily 所支持的一种字样的详细信息。Specifies the details of a single typeface supported by a FontFamily.

public ref class FamilyTypeface
public class FamilyTypeface
type FamilyTypeface = class
Public Class FamilyTypeface
继承
FamilyTypeface

注解

对象与系统支持FamilyTypeface的字样数量相同。There are as many FamilyTypeface objects as there are typefaces supported by the system.

构造函数

FamilyTypeface()

初始化 FamilyTypeface 类的新实例。Initializes a new instance of the FamilyTypeface class.

属性

AdjustedFaceNames

获取字体差分器调整的本地化字体名称的集合。Gets a collection of localized face names adjusted by the font differentiator.

CapsHeight

获取或设置从基线到英语大写字母顶部的距离(相对于 em 大小)。Gets or sets the distance from baseline to top of an English capital, relative to em size.

DeviceFontCharacterMetrics

获取设备字体系列字样的字符规格的集合。Gets the collection of character metrics for a device font family typeface.

DeviceFontName

获取或设置设备字体系列字样的名称或唯一标识符。Gets or sets the name or unique identifier for a device font family typeface.

Stretch

获取或设置所设计的字体系列字样的拉伸值。Gets or sets the designed stretch of the font family typeface.

StrikethroughPosition

获取或设置相对于基线的删除线的位置值。Gets or sets the position of the strikethrough value relative to the baseline. 此值也相对于 em 大小。The value is also relative to em size.

StrikethroughThickness

获取或设置相对于 em 大小的删除线宽度。Gets or sets the thickness of the strikethrough relative to em size.

Style

获取或设置字体系列字样设计的样式。Gets or sets the style of the font family typeface design.

UnderlinePosition

获取或设置相对于基线的下划线的位置值。Gets or sets the position of underline value relative to the baseline. 此值也相对于 em 大小。The value is also relative to em size.

UnderlineThickness

获取或设置相对于 em 大小的下划线宽度。Gets or sets the thickness of underline relative to em size.

Weight

获取或设置所设计的此字体系列字样的粗细。Gets or sets the designed weight of this font family typeface.

XHeight

获取或设置相对于 em 大小的西文 x 高度。Gets or sets the Western x-height relative to em size.

方法

Equals(FamilyTypeface)

比较两个字体系列字样是否相等。Compares two font family typefaces for equality.

Equals(Object)

比较两个字体系列字样是否相等。Compares two font family typefaces for equality.

GetHashCode()

充当 FamilyTypeface 对象的哈希函数。Serves as a hash function for a FamilyTypeface object. GetHashCode() 方法适合在哈希算法和类似哈希表的数据结构中使用。The GetHashCode() method is suitable for use in hashing algorithms and data structures like a hash table.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于