Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 4.0 (current version)Version 3.0Version 2.0Version 1.0 (home page)

On this page

API object - Font

The Font object provides details on fonts for the keyboard/language and contains the following members:

family
string optional
Font family that KeymanWeb will provide for this font.
size
string optional
Font size (in CSS dimensions). If not specified, then 1em.
source
Array optional
Array of downloadable filenames for this font, which should be combined with options.fontBaseUri.

Example case

The following is extracted from https://api.keyman.com/cloud/2.0/languages/lao.

family:     "LaoWeb"
source:
  0:        "saysettha_OT.ttf"
  1:        "saysettha_web.woff"
  2:        "SAYSETT0.eot"

Alternate formatting:

"font": {
  "family":     "LaoWeb",
  "source":     [
                  "saysettha_OT.ttf",
                  "saysettha_web.woff",
                  "SAYSETT0.eot"
                ]
}