FontVariants 枚举

定义

呈现不同的版式标志符号形式。Renders variant typographic glyph forms.

public enum class FontVariants
public enum FontVariants
type FontVariants = 
Public Enum FontVariants
继承
FontVariants

字段

Inferior 4

将默认标志符号替换为下标标志符号,或者,它可以结合标志符号替换和定位调整来获得正确的位置。Replaces a default glyph with an inferior glyph, or it may combine glyph substitution with positioning adjustments for proper placement. 下标形式通常用在化学公式或数学符号中。Inferior forms are typically used in chemical formulas or mathematical notation.

Normal 0

默认字体行为。Default font behavior. 字体缩放和定位是正常的。Font scaling and positioning is normal.

Ordinal 3

将默认标志符号替换为序号标志符号,或者,它可以结合标志符号替换和定位调整来获得正确的位置。Replaces a default glyph with an ordinal glyph, or it may combine glyph substitution with positioning adjustments for proper placement. 序号形式通常与序数词的数字批注(比如表示“first”的“1st”)关联。Ordinal forms are normally associated with numeric notation of an ordinal word, such as "1st" for "first."

Ruby 5

将默认标志符号替换为较小的日语假名标志符号。Replaces a default glyph with a smaller Japanese Kana glyph. 此标志符号通常用于阐明读者可能不熟悉的日文汉字的含义。This is used to clarify the meaning of Kanji, which may be unfamiliar to the reader.

Subscript 2

将默认标志符号替换为下标标志符号。Replaces a default glyph with a subscript glyph.

Superscript 1

将默认标志符号替换为上标标志符号。Replaces a default glyph with a superscript glyph. 上标通常用于脚注。Superscript is commonly used for footnotes.

示例

Variants属性允许您设置 OpenType 字体的上标和下标值。The Variants property allows you to set superscript and subscript values for an OpenType font.

以下文本显示 Palatino Linotype 字体的上标。The following text displays superscripts for the Palatino Linotype font.

使用 OpenType 上标的文本Text using OpenType superscripts
上标的示例Example of superscripts

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

<Paragraph FontFamily="Palatino Linotype">
  2<Run Typography.Variants="Superscript">3</Run>
  14<Run Typography.Variants="Superscript">th</Run>
</Paragraph>

以下文本显示 Palatino Linotype 字体的下标。The following text displays subscripts for the Palatino Linotype font.

使用 OpenType 下标的文本Text using OpenType subscripts
下标的示例Example of subscripts

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

<Paragraph FontFamily="Palatino Linotype">
  H<Run Typography.Variants="Subscript">2</Run>O
  Footnote<Run Typography.Variants="Subscript">4</Run>
</Paragraph>

注解

如果指定的字体不支持特定的字形集, 则显示默认字形。If a specified font does not support a particular glyph set, the default glyphs are displayed.

适用于