Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FontCapitals Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Describes the capital letter style for a Typography object.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public enum FontCapitals

Member nameDescription
AllPetiteCaps

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

Both capital and lowercase letters are replaced with a glyph form of an uppercase letter with the same approximate height.

Normal

Capital letters render normally.

PetiteCaps

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

Lowercase letters are replaced with a glyph form of an uppercase letter with the same approximate height.

Titling

Glyph forms are substituted with a typographic form specifically designed for titles.

Unicase

Capital letters display in unicase. Unicase fonts render both upper and lowercase letters in a mixture of upper and lowercase glyphs determined by the type designer.

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 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.

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.

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. The following text displays normal and titling capitals for the Pescadero font. Notice the narrower stem widths of the text on the second line.

Text using OpenType titling capitals

Example of normal and titling capitals

System_CAPS_noteNote

Most OpenType fonts expose only a subset of the total OpenType features available.

The following code example shows how to define capitals for the Pescadero font, using properties of the Typography object. When the "SmallCaps" format is used, any leading capital letter is ignored.

The following code example shows how to define titling capitals for the Pescadero font, using properties of the Typography object.

.NET Framework
Available since 3.0
Silverlight
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Return to top
Show:
© 2017 Microsoft