Skip to content
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

FontAwesomeBrands is broken in 12.0.0 #125

Closed
dtoyne2 opened this issue Dec 6, 2020 · 11 comments
Closed

FontAwesomeBrands is broken in 12.0.0 #125

dtoyne2 opened this issue Dec 6, 2020 · 11 comments
Assignees
Labels
Milestone

Comments

@dtoyne2
Copy link

dtoyne2 commented Dec 6, 2020

Hi,
After updgrading to 12.0.0 it appears that FontAwesomeBrands is broken. For example, FontAwesomeBrands.CHROME is shown as an empty box, others like FontAwesomeBrands.TWITTER are showing the wrong icon. All the other packs i'm using are working ok

@aalmiray
Copy link
Collaborator

aalmiray commented Dec 6, 2020

Could you provide more details on your setup? Such as Java version, build tool, IDE, depedencies. Are you using the modulepath or classpath? Are you using FXML for including ikons or the API?

Here's a screenshot of ikonli-browser with FontAwesomeBrands.CHROME selected. This application defines ikons with API, no FXML.

ikonli-browser-fab-chrome

@dtoyne2
Copy link
Author

dtoyne2 commented Dec 6, 2020

I'm using openjdk 15.0.1 from AdoptOpenJDK on Ubuntu 20.10, openjfx 15.0.1, intellij, maven. I am using both FXML and the API, both are getting the same results. I'm running on the module path.

It was working fine with 11.5.0 and nothing else has changed.

fab-twitter and FontAwesomeBrands.TWITTER show up as an envelope with a lightning bolt through it, which I can't see in FontAwesome brands. I'm also using material and materialdesign packs.

@aalmiray
Copy link
Collaborator

aalmiray commented Dec 6, 2020

If fab-twitter is resolved without exception then it means org.kordamp.ikonli.fontawesome5.FontAwesomeBrandsIkonHandler handled the iconLiteral resolution. But if the wrong icon is displayed it means the font resource or the font family is incorrect.

The font resources should be "/META-INF/resources/fontawesome5/5.15.1/fonts/fa-brands-400.ttf".
The font family should be "Font Awesome 5 Brands".

@dtoyne2
Copy link
Author

dtoyne2 commented Dec 6, 2020

Yes, I looked in the jar file. It seems ok

@aalmiray
Copy link
Collaborator

aalmiray commented Dec 7, 2020

I'm at a loss here. The explanation indicates there's a problem with resource handling, as if the wrong Font file or family were in use. Dos the project code happen to be available on a public repository?

@dtoyne2
Copy link
Author

dtoyne2 commented Dec 7, 2020

Sorry, the code is private. When I get time I'll try to reproduce it in a separate simple app

@aalmiray
Copy link
Collaborator

aalmiray commented Dec 7, 2020

I found an inconsistency in the FontAwesomeBrandsIkonHandler type. The declared font-family did not match the value found in the .ttf file. I've pushed an update which I hope solves this issue.
Could you build a local snapshot and give it a try? The readme has instructions to build a snapshot release.
Thank you.

@dtoyne2
Copy link
Author

dtoyne2 commented Dec 7, 2020

Yes, this works! Thanks for tracking it down

@aalmiray
Copy link
Collaborator

aalmiray commented Dec 7, 2020

Excellent! I'll wait a few more days before posting a release, just in case there's something else that needs fixing.

@jackpeters667
Copy link

Hello @aalmiray just checking for the progress of posting a release

@aalmiray aalmiray self-assigned this Dec 21, 2020
@aalmiray aalmiray added the Bug label Dec 21, 2020
@aalmiray aalmiray added this to the 12.0.1 milestone Dec 21, 2020
@aalmiray
Copy link
Collaborator

I'm aiming for next week to cut a release, hoping I can get fix for #127 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants