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.
Custom fonts works well for me, Could you edit this example to make it not work?
custom-font.zip
Here you go. If you change the version back to 3.4.0 then the errors go away.
Got it, it's a matter of order of lines, fontStyle should be applied before font, will send PR now.
Most helpful comment
Got it, it's a matter of order of lines,
fontStyleshould be applied beforefont, will send PR now.