LanguageFontGroup.LanguageFontGroup constructor

Applies to Windows and Windows Phone

Creates a LanguageFontGroup object for a given language or script.

Syntax


var languageFontGroup = new Windows.Globalization.Fonts.LanguageFontGroup(languageTag);

Parameters

languageTag

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A BCP-47 language tag, or an ISO 15924 script identifier.

Remarks

The languageTag parameter can be any valid BCP-47 language tag, such as "en", "de-CH", or "zh-Hans". The only limitations are that the language tag must include an explicit script subtag or be for a language for which the script is implicitly known. (For instance, "en" is assumed to imply Latin script.) Moreover, the script must be one that Windows supports.

The languageTag parameter can also be a valid ISO 15924 script identifier, such as "Latn", "Cyrl", or "Deva". The only limitation is that the script must be one that Windows supports.

Note  If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

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
BCP-47 language tags

 

 

Show:
© 2014 Microsoft