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

Custom Font Bug v3.4.1 #632

Closed
bsparacino opened this issue Apr 12, 2020 · 3 comments · Fixed by #633
Closed

Custom Font Bug v3.4.1 #632

bsparacino opened this issue Apr 12, 2020 · 3 comments · Fixed by #633
Labels

Comments

@bsparacino
Copy link

In v3.4.1 and v3.4.2 a bug was introduced which breaks custom fonts.
I get the error:
Unable to look up font label for font 'ARIALN', 'bold'. Refer to getFontList() for available fonts.
Unable to look up font label for font 'ARIALNB', 'normal'. Refer to getFontList() for available fonts.

It seems to be inverting either the font or fontStyle between lines of fonts I am printing out.
If I switch back to v3.4.0 then it works.

The issue has to do with this block of code, if I copy the stylesMofifiers block from the previous version then everything is working again.

d6e69da?diff=split
image

@mmghv
Copy link
Collaborator

mmghv commented Apr 12, 2020

Custom fonts works well for me, Could you edit this example to make it not work?
custom-font.zip

@bsparacino
Copy link
Author

Here you go. If you change the version back to 3.4.0 then the errors go away.

custom-font.zip
image

@mmghv
Copy link
Collaborator

mmghv commented Apr 12, 2020

Got it, it's a matter of order of lines, fontStyle should be applied before font, will send PR now.

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

Successfully merging a pull request may close this issue.

2 participants