Windows Dev Center

LanguageFontGroup.ModernDocumentFont | modernDocumentFont property

Gets a font that is recommended for typical document body text following modern style conventions.

Syntax


var modernDocumentFont = languageFontGroup.modernDocumentFont;

Property value

Type: LanguageFont

The recommended LanguageFont.

Remarks

The ModernDocumentFont property provides a font recommendation for typical document body text following modern style conventions. These fonts can also be used in headings or other document elements.

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 ModernDocumentFont recommendation is available for every supported language or script.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2015 Microsoft