spiegel-keyman/android/docs/engine/KMManager/getKeyboardOskFontFilename.md
Eberhard Beilharz 1867a7659f
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2026-07-03 17:23:19 +02:00

1.2 KiB

title
KMManager.getKeyboardOskFontFilename()

Summary

The getKeyboardOskFontFilename() method returns the selected keyboard's OSK font filename and full path.

Syntax

KMManager.getKeyboardOskFontFilename()

Returns

Returns the selected keyboard's OSK font filename and full path as String if it has any, empty string otherwise. Note that the on-screen keyboard will fallback to the keyboard text font if no OSK font is specified.

The OSK font should not be used for a text view, because some OSK fonts are appropriate for use only in the on screen keyboard; see &displayMap for reference.

Description

Use this method to get the OSK font filename of the selected keyboard.

Examples

Example: Using getKeyboardOskFontFilename()

The following script illustrate the use of getKeyboardOskFontFilename():

String oskFontFilename = KMManager.getKeyboardOskFontFilename();

See also