Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0 (current version)Version 16.0Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0

On this page

You are viewing an old version of this documentation. Click here to open the current version, 18.0.

Manager.fontNameForKeyboard()


Summary

The fontNameForKeyboard() method returns the font name for the given keyboard.

Syntax

Manager.fontNameForKeyboard(fullID: FullKeyboardID)

Parameter

fullID
Full ID of the keyboard.

Returns

Returns String of the font name, nil if the keyboard doesn't have a font.

Description

This syntax can be used for getting the font name of a keyboard.

Example 1: Using fontNameForKeyboard()

The following script illustrates the use of fontNameForKeyboard():

let fontName: String?
if let id = Manager.shared.currentKeyboardID {
  fontName = Manager.shared.fontNameForKeyboard(withFullID: id)
} else {
  fontName = nil
}