mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
33 lines
591 B
Markdown
33 lines
591 B
Markdown
---
|
|
title: KMManager.setKeyboardPickerFont()
|
|
---
|
|
|
|
## Summary
|
|
|
|
The **`setKeyboardPickerFont()`** sets the font for the keyboard picker
|
|
menu.
|
|
|
|
## Syntax
|
|
|
|
``` javascript
|
|
KMManager.setKeyboardPickerFont(Typeface typeface)
|
|
```
|
|
|
|
### Parameters
|
|
|
|
`typeface`
|
|
: The font
|
|
|
|
## Description
|
|
|
|
Use this method to set a font for the keyboard picker menu.
|
|
|
|
## Examples
|
|
|
|
### Example: Using `setKeyboardPickerFont()`
|
|
|
|
The following script illustrate the use of `setKeyboardPickerFont()`:
|
|
|
|
``` javascript
|
|
KMManager.setKeyboardPickerFont(Typeface.createFromAsset(getAssets(), "fonts/custom_font.ttf"));
|
|
```
|