FontFraction 枚举


描述 Typography 对象的分数样式。Describes the fraction style for a Typography object.

public enum class FontFraction
public enum FontFraction
type FontFraction = 
Public Enum FontFraction


Normal 0

使用默认样式。Default style is used.

Slashed 1

使用斜杠式分数样式。Slashed fraction style is used.

Stacked 2

使用堆叠式分数样式。Stacked fraction style is used.


下面的代码示例演示如何使用Typography对象的属性定义 Palatino Linotype 字体的分数样式。The following code example shows how to define fraction styles for the Palatino Linotype font, using properties of the Typography object.

<Paragraph FontFamily="Palatino Linotype" Typography.Fraction="Slashed">
  1/8 1/4 3/8 1/2 5/8 3/4 7/8
<Paragraph FontFamily="Palatino Linotype" Typography.Fraction="Stacked">
  1/8 1/4 3/8 1/2 5/8 3/4 7/8


OpenType 字体支持分数样式, 包括斜杠和堆积样式。OpenType fonts support styles for fractions, including slashed and stacked. 以下文本显示 Palatino Linotype 字体的分数样式。The following text displays fraction styles for the Palatino Linotype font.

使用 OpenType 斜杠和堆积分数的文本Text using OpenType slashed and stacked fractions
斜杠和堆积分数样式的示例Example of slashed and stacked fraction styles


大多数 OpenType 字体只公开了可用的全部 OpenType 功能的子集。Most OpenType fonts expose only a subset of the total OpenType features available. 如果指定的字体不支持特定功能, 则改用默认标志符号。If a specified font does not support a particular feature, the default glyphs are used instead.