Skip to content

Unicode fonts (utf-8) in Safari (iOS and OSX) error #3190

Closed
@omeriko

Description

@omeriko

Hi guys

We are using the
jsPDF.text(text, x, y, optionsopt, transform)
in order to insert text to the pdf document.
Since we need to support Hebrew language we used the following api calls to add unicode fonts:

jsPDF.addFileToVFS("MyFont.ttf", myFont);
jsPDF.addFont("MyFont.ttf", "MyFont", "normal");
jsPDF.setFont("MyFont");

I downloaded *.ttf file with Hebrew fonts and it all works well on all major browsers: Chrome, Firefox & Edge.
However to my regret on Safari browser whether on iPhone or Macbook it gives me gibberish text... :-(

What should i do?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions