question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
HackbrettXXXcommented, Jul 13, 2021

Please also try updating to 2.3.1

1reaction
HackbrettXXXcommented, Jun 21, 2021

Please provide a complete repro, so we can reproduce the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unicode fonts (utf-8) in Safari (iOS and OSX) error · Issue #3190
Hi guys We are using the jsPDF.text(text, x, y, optionsopt, transform) in order to insert text to the pdf document.
Read more >
Unicode & UTF-8 support problems? - Apple Community
I'm trying to view fonts from a website but all I get are diamonds ... with Mac/Safari/OSX, but informed me that the text...
Read more >
This week we had a UTF-8 issue that only impacted Safari ...
We had unicode characters in strings in our database. When those were being fetched by the front-end on Safari, the browser was making...
Read more >
Issues with unicode filenames on macOS Safari in Web Edition
I ran Wireshark on the requests to list_restore_directory when I click on a folder name. And I found a difference in UTF8 encoding...
Read more >
Safari on the iPhone cant display escaped unicode character
On Google Chrome on my Mac everything is rendering fine but I've tested it on Safari with my iPhone and it just shows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found