-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ikonli material design 2 font not rendered on Javafx native Android application #171
Comments
Have you tried loading the font directly via regular JavaFX APIs in a test app? |
You mean use Font.loadFont(URL urlStr, double size), set this as the font on a Text and fill it with some characters? I can try and report back. |
I suggest using both Text and Label classes. |
|
Suddenly get |
My Javafx app at https://github.com/hallvard/halban uses Ikonli and its ikonli-materialdesign2-pack maven artifact for button icons, e.g. arrow triangles, undo/redo and play/pause. These icons show nicely when run normally on Macos (using mvn exec:java) or as a native app built with Gluon's maven plugin (using Graal).
However, in the "same" native Android app (also built with Gluon's plugin and github actions) the icons are rendered as rectangles with diagonal lines inside. The font loading seems OK, at least the icon's -fx-font-family style is correctly set, and there's no exception, so I assume the ttf is located (using a loaded service) and loaded. But for some reason the rendering uses this "placeholder" rectangle (rotation and color is correct), so something is clearly wrong.
BTW, I'm installing and running the app by downloading the apk, not by using the nativerun maven goal (since I don't run Linux I cannot build and run locally).
The text was updated successfully, but these errors were encountered: