-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow build on system without fonts #201
Comments
Hey @mtrakal 👋
Version 4.0 actually comes with bundled Roboto font as a fallback, so it should work in an environment without preinstalled fonts. Matching your stacktrace with the source code the result points at a method responsible for finding proper text size, which relies on having the a font loaded, but clearly in your setup loading the default font also failed :/ |
Hi, it looks, that I provided wrong font name, when I now checking names for ttf-dejavu (I used: GraphicsEnvironment.getLocalGraphicsEnvironment().availableFontFamilyNames.forEach {
println(it)
} output on my Windows machine
When I try this:
|
Hey @mtrakal 👋 |
I've had the same "Problem reading font data" issue when building a project via Gitlab-CI and
Maybe adding an embedded fallback font to this plugin would save some users from having to dig for the cause of their failing CI build and finding out it is caused only by a gradle plugin. |
@mateuszkwiecinski I uses java8 images, but expect, that it will not affect result.
Image: alvrme/alpine-android-liberica:android-30-jdk8 So maybe image make difference (it uses different Java JDK). Or I experimented before with: Expect, that correct name should be: |
@stefanoberdoerfer As far as I understand the issue is not the default font (because the plugins is shipped with default
@mtrakal I used Java 11 because AGP 7 started requiring such. I modified the repro project to use java 8 (with older AGP version) and it still works as expected: https://github.com/mateuszkwiecinski/easylauncher_on_docker/runs/3433226377?check_suite_focus=true I tried without installing It seems like installing any font allows the plugin to read bundled font resource, which is a behavior I don't understand, at all 🤔 |
Did you get this to run with JDK 11? I'm using I'm getting
Similar error with using
|
I run this in pipeline before run easylauncher: my easylauncher looks like:
|
I have KTS build scripts and
|
Calling If you're configuring the plugin from |
Hmm,
|
Guys if anyone is using CircleCI, then everything will work with |
People, did you find a solution? I tried everything above and I'm getting
I'm trying JSDK 21 |
I try to use version 4.0.0 with docker image without preinstalled fonts / font support in JDK.
In this case it's not possible to build app.
More info in: alvr/alpine-android#12
It would be nice when EasyLauncher could use some bundled font if it's possible.
The text was updated successfully, but these errors were encountered: