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

48 lines
1.2 KiB
Markdown

---
title: KMManager.getKeyboardOskFontFilename()
---
## Summary
The **`getKeyboardOskFontFilename()`** method returns the selected
keyboard's OSK font filename and full path.
## Syntax
``` java
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`](/developer/language/reference/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()`:
``` java
String oskFontFilename = KMManager.getKeyboardOskFontFilename();
```
## See also
- [`getKeyboardTextFontFilename()`](getKeyboardTextFontFilename)
- [`getKeyboardOskFontTypeface()`](getKeyboardOskFontTypeface)
- [`getKeyboardTextFontTypeface()`](getKeyboardTextFontTypeface)
- [`getFontTypeface()`](getFontTypeface)