LanguageFontGroup.DocumentAlternate1Font | documentAlternate1Font property

Applies to Windows and Windows Phone

Gets a font that is recommended as an additional option for use in documents beyond the recommendations provided by DocumentHeadingFont, ModernDocumentFont and TraditionalDocumentFont.

Syntax


var documentAlternate1Font = languageFontGroup.documentAlternate1Font;

Property value

Type: LanguageFont

The recommended LanguageFont, or NULL if no font recommendation is available.

Remarks

The DocumentAlternate1Font property provides a font recommendation as an additional option for use in documents beyond the recommendations provided by DocumentHeadingFont, ModernDocumentFont and TraditionalDocumentFont. These fonts could be used in body text or other text elements. The app scenario for which this is most likely to be useful is in populating a font-picker list in an authoring tool with a set of fonts designed for a particular language or script.

The font recommended for this usage case will always be a "regular" font (regular weight, normal style, normal stretch). Apps might want to apply other weight/style/stretch formatting, as may be appropriate for the app scenario.

A DocumentAlternate1Font recommendation is available for certain languages and scripts only.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization.Fonts
Windows::Globalization::Fonts [C++]

Metadata

Windows.winmd

See also

LanguageFontGroup

 

 

Show:
© 2014 Microsoft