FontHelper

FontHelper ⇐ Const

Kind: global class
Extends: Const

FontHelper()

Utility class used to retrieve needed WPE typographic font descriptions.

getFontDescription(fontName) ⇒ Object

Returns the font parameters to send to WPE engine (i.e. WebPlatformForEmbedded webkit platform).

Kind: static method of FontHelper
Returns: Object - Returns an object with family, weight and style parameters we need to use in WPE engine corresponding to the font we want to use

ParamTypeDescription
fontNamestring

The font name defined in theme we want to use