FontCapitals 枚举

定义

描述 Typography 对象的大写字母样式。Describes the capital letter style for a Typography object.

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

字段

AllPetiteCaps 3

大写字母和小写字母都被替换为高度大致相同的大写字母的标志符号形式。Both capital and lowercase letters are replaced with a glyph form of an uppercase letter with the same approximate height. 小号大写字母比小型大写字母要小。Petite capitals are smaller than small capitals.

AllSmallCaps 1

大写字母和小写字母都被替换为高度大致相同的大写字母的标志符号形式。Both capital and lowercase letters are replaced with a glyph form of an uppercase letter with the same approximate height.

Normal 0

大写字母正常呈现。Capital letters render normally.

PetiteCaps 4

小写字母都被替换为高度大致相同的大写字母的标志符号形式。Lowercase letters are replaced with a glyph form of an uppercase letter with the same approximate height. 小号大写字母比小型大写字母要小。Petite capitals are smaller than small capitals.

SmallCaps 2

小写字母都被替换为高度大致相同的大写字母的标志符号形式。Lowercase letters are replaced with a glyph form of an uppercase letter with the same approximate height.

Titling 6

标志符号格式被替换为专门为标题设计的版式格式。Glyph forms are substituted with a typographic form specifically designed for titles.

Unicase 5

大写字母以 Unicase 字体显示。Capital letters display in unicase. Unicase font 字体以大小写标志符号混合形式(由字体设计者确定)同时呈现大写和小写字母。Unicase fonts render both upper and lowercase letters in a mixture of upper and lowercase glyphs determined by the type designer.

示例

下面的代码示例演示如何使用Typography对象的属性定义 Pescadero 字体的大写字母。The following code example shows how to define capitals for the Pescadero font, using properties of the Typography object. 使用“SmallCaps”格式时会忽略任何前导大写字母。When the "SmallCaps" format is used, any leading capital letter is ignored.

<Paragraph FontFamily="Pescadero" FontSize="48">
  <Run>CAPITALS</Run>
  <Run Typography.Capitals="SmallCaps">Capitals</Run>
  <Run Typography.Capitals="AllSmallCaps">Capitals</Run>
</Paragraph>

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

<Paragraph FontFamily="Pescadero">
  <Run Typography.Capitals="Titling">chapter one</Run>
</Paragraph>

注解

大写字母是一组以大写样式字形呈现文本的版式形式。Capitals are a set of typographical forms that render text in capital-styled glyphs. 通常情况下,当以全大写呈现文本时,字母之间的间距可能看起来很小,字母的权重和比例看起来会很大。Typically, when text is rendered as all capitals, the spacing between letters can appear too tight, and the weight and proportion of the letters too heavy. 对于大写字母, OpenType 支持多种样式格式, 其中包括小型大写字母、小号大写字母、标题和大写字母间距。OpenType supports a number of styling formats for capitals, including small capitals, petite capitals, titling, and capital spacing. 通过这些样式格式可控制大写字母的外观。These styling formats allow you to control the appearance of capitals.

以下文本显示 Pescadero 字体的标准大写字母,其后接样式为“SmallCaps”和“AllSmallCaps”的字母。The following text displays standard capital letters for the Pescadero font, followed by the letters styled as "SmallCaps" and "AllSmallCaps". 本例中,对所有三个单词均使用相同的字体大小。In this case, the same font size is used for all three words.

使用 OpenType 大写字母的文本Text using OpenType capitals
大写字母示例Example of capitals

标题大写字母权重和比例更小,外观比普通大写字母更加雅致。Titling capitals are lighter in weight and proportion and designed to give a more elegant look than normal capitals. 标题大写字母通常用于作为标题的大号字体中。Titling capitals are typically used in larger font sizes as headings. 以下文本显示 Pescadero 字体的普通大写字母和标题大写字母。The following text displays normal and titling capitals for the Pescadero font. 请注意第二行文本的宽度更窄。Notice the narrower stem widths of the text on the second line.

使用 OpenType 标题大写字母的文本Text using OpenType titling capitals
普通大写字母和标题大写字母的示例Example of normal and titling capitals

备注

大多数 OpenType 字体只公开了可用的全部 OpenType 功能的子集。Most OpenType fonts expose only a subset of the total OpenType features available.

适用于