最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Ikonli material design 2 font not rendered on Javafx native Android application - Stack Overflow

programmeradmin4浏览0评论

My Javafx app at 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).

发布评论

评论列表(0)

  1. 暂无评论