Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Custom Font not working in Firefox #45

Open
MaxHaslehner opened this issue Aug 2, 2018 · 0 comments
Open

Custom Font not working in Firefox #45

MaxHaslehner opened this issue Aug 2, 2018 · 0 comments

Comments

@MaxHaslehner
Copy link

Hi
I had problems with displaying the €-Character with the Standard Fonts, so i decided to use Custom Fonts. It worked perfectly in Chrome, but the Problem is, that Firefox doesn't create my PDF with Custom Fonts, displaying these Errors:

"No unicode cmap for font"
"font.metadata.Unicode is undefined"

I use PTSans (Regular,Bold,Italic), but also tried other free Unicode-Fonts, who led to the same Errors.
I also debugged the jspdf.debug.js and saw, that the TTFFont Function in Chrome and Firefox differ, for example they have different values in data.readString(4) which leads to a broken cmap value in Firefox.

Does anyone ever faced this problem, or maybe knows a fix?

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

No branches or pull requests

1 participant