mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-19 23:07:42 +00:00
Co-authored-by: Marc Durdin <marc@durdin.net> Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
48 lines
1.2 KiB
Markdown
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)
|