spiegel-keyman/android/docs/engine/KMManager
Eberhard Beilharz 1191e4387f
fix(android): fix setting font
PR #16146 introduced a problem with selecting a different font as
display font so that we always ended up with not setting the font.
This was caused by the font filenames now being a URL (which is necessary
because they get processed by the web engine). However, the Android code
checks for the existence of the font in order to create the typeface,
which only works for local paths.

This PR modifies and simplifies `KMKeyboard.getFontFilename` to return the
full path, renames `KMKeyboard.txtFont` and `KMKeyboard.oskFont` to make
it clearer that they contain a path and not a URL.

Also initialize `KMKeyboard.oskFontPath` with empty string instead of
`null`. This makes it consistent with` txtFontPath` and with the
documented behavior of `KMManager.getKeyboardOskFontFilename()` (which
returns `KMKeyboard.oskFontPath`).

Follows: #16146
Fixes: #16187
Build-bot: release:android
2026-07-02 19:52:35 +02:00
..
addKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
addKeyboardDownloadEventListener.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
addKeyboardEventListener.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
addLexicalModel.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
advanceToNextInputMode.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
advanceToPreviousInputMethod.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
applyKeyboardHeight.md Adding Docs for getKeyboardHeightMin/max & updating webview height 2025-11-21 14:50:03 -06:00
canAddNewKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
canRemoveKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
closeParentAppOnShowKeyboardPicker.md Apply suggestions from code review 2025-03-01 07:58:13 +07:00
copyHTMLBannerAssets.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
createInputView.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
deregisterLexicalModel.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
dontCloseParentAppOnShowKeyboardPicker.md docs(android): document control flag for system keyboard picker and task 2025-02-28 09:30:46 +07:00
executeHardwareKeystroke.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getAssociatedLexicalModel.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getBannerHeight.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getCurrentKeyboardIndex.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getCurrentKeyboardInfo.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getDefaultKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getDefaultKeyboardHeight.md fix(android): Move responsibility for setting keyboard height preference 2025-04-01 14:10:55 +07:00
getFontTypeface.md fix(android): fix setting font 2026-07-02 19:52:35 +02:00
getGlobeKeyAction.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getHapticFeedback.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardFontFilename.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardFontTypeface.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardHeight.md Adding Docs for getKeyboardHeightMin/max & updating webview height 2025-11-21 14:50:03 -06:00
getKeyboardHeightMax.md Adding Docs for getKeyboardHeightMin/max & updating webview height 2025-11-21 14:50:03 -06:00
getKeyboardHeightMin.md Update android/docs/engine/KMManager/getKeyboardHeightMin.md 2025-11-25 02:39:28 -06:00
getKeyboardIndex.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardInfo.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardOskFontFilename.md fix(android): fix setting font 2026-07-02 19:52:35 +02:00
getKeyboardOskFontTypeface.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardsList.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardState.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKeyboardTextFontFilename.md fix(android): fix setting font 2026-07-02 19:52:35 +02:00
getKeyboardTextFontTypeface.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getKMKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getLanguageCorrectionPreferenceKey.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getLanguagePredictionPreferenceKey.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getLatestKeyboardFileVersion.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getLexicalModelInfo.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getLexicalModelsList.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getLongpressDelay.md docs(android): Document removing sendOptionsToKeyboard API 2025-02-13 15:31:21 +07:00
getMaySendCrashReport.md docs(common): Update Sentry links to keyman.sentry.io 2025-03-13 16:33:52 +07:00
getNavigationBarHeight.md docs(android): Update getNavigationBarHeight API 2025-10-08 05:35:31 +07:00
getOrientation.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getPredictionsSuspended.md fix(android): Cleanup comments 2025-03-24 10:27:50 +07:00
getSpacebarText.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getVersion.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getWindowDensity.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
getWindowSize.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
hasConnection.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
hideSystemKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
index.md fix(android): resolve PR review comments for keyboard height min/max 2025-11-24 23:14:52 +00:00
initialize.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
isDebugMode.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
isHelpBubbleEnabled.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
isKeyboardLoaded.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
keyboardExists.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
lexicalModelExists.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
onConfigurationChanged.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
onDestroy.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
onPause.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
onResume.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
onStartInput.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
registerAssociatedLexicalModel.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
registerLexicalModel.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
removeKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
removeKeyboardDownloadEventListener.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
removeKeyboardEventListener.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
sample_template.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setCanAddNewKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setCanRemoveKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setDebugMode.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setDefaultKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setGlobeKeyAction.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setHapticFeedback.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setHelpBubbleEnabled.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setHTMLBanner.md docs(android): Update documentation 2025-04-11 11:07:17 +07:00
setKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setKeyboardPickerFont.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setKeymanLicense.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setLongpressDelay.md Update android/docs/engine/KMManager/setLongpressDelay.md 2025-02-13 16:06:50 +07:00
setMaySendCrashReport.md docs(common): Update Sentry links to keyman.sentry.io 2025-03-13 16:33:52 +07:00
setPredictionsSuspended.md fix(android): Cleanup comments 2025-03-24 10:27:50 +07:00
setShouldAllowSetKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setShouldCheckKeyboardUpdates.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
setSpacebarText.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
shouldAllowSetKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
shouldCheckKeyboardUpdates.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
showKeyboardPicker.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
showLanguageList.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
switchToNextKeyboard.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
updateSelectionRange.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00
updateText.md refactor(android): move Android Engine help in-repo 2024-10-31 10:08:17 +07:00