spiegel-keyman/android/KMAPro
Eberhard Beilharz a89dd1bed0 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-09-22 06:08:48 +02:00
..
.idea chore(android/app): Remove runConfigruations.xml file 2021-09-23 10:09:43 +07:00
gradle/wrapper fix(android): Update to Java 21 and Gradle dependencies 2025-08-25 09:00:06 +07:00
kMAPro fix(android): fix setting font 2026-09-22 06:08:48 +02:00
.classpath Keyman for Android 2.8 Open Source 2017-07-21 11:52:22 +07:00
build-play-store-notes.inc.sh refactor(common): fixup help path script references 2024-09-16 06:19:14 +07:00
build.gradle fix(android): Update to Java 21 and Gradle dependencies 2025-08-25 09:00:06 +07:00
build.sh fix(android): Update to Java 21 and Gradle dependencies 2025-08-25 09:00:06 +07:00
gradle.properties fix(android): Update to Java 21 and Gradle dependencies 2025-08-25 09:00:06 +07:00
gradlew fix(android): Update Gradle wrapper to 5.6.4 2020-08-07 08:51:01 +07:00
gradlew.bat fix(android): Update Gradle wrapper to 5.6.4 2020-08-07 08:51:01 +07:00
ic_launcher-web.png Keyman for Android 2.8 Open Source 2017-07-21 11:52:22 +07:00
lint.xml Keyman for Android 2.8 Open Source 2017-07-21 11:52:22 +07:00
proguard-project.txt Keyman for Android 2.8 Open Source 2017-07-21 11:52:22 +07:00
project.properties Keyman for Android 2.8 Open Source 2017-07-21 11:52:22 +07:00
settings.gradle Add to history.md changelog 2017-08-23 17:28:47 +07:00