genericfontnames.js
No description.

File Location

/goog/locale/genericfontnames.js


Public Protected Private

Global Functions

goog.locale.genericFontNames.getList(locale) Array.<Object>
Gets the list of fonts and their generic names for the given locale.
Arguments:
locale : string
The locale for which font lists and font family names to be produced. The expected locale id is as described in http://wiki/Main/IIISynonyms in all lowercase for easy matching. Smallest possible id is expected. Examples: 'zh', 'zh-tw', 'iw' instead of 'zh-CN', 'zh-Hant-TW', 'he'.
Returns: Array.<Object>  List of objects with generic name as 'caption' and corresponding font name lists as 'value' property.
code »
goog.locale.genericFontNames.normalize_(locale) string
Normalizes the given locale id to standard form. eg: zh_Hant_TW. Many a times, input locale would be like: zh-tw, zh-hant-tw.
Arguments:
locale : string
The locale id to be normalized.
Returns: string  Normalized locale id.
code »

Directory locale

File Reference