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

Custom Font not working in Firefox #45

@MaxHaslehner

Description

@MaxHaslehner

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions