-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Open
Description
i loaded my arabic/persian font but some character's won't show or show wrong :
var doc = new jsPDF();
doc.addFont("test/reference/fonts/IranNastaliq-Web.ttf", "IranNastaliq", "normal");
doc.setFont("IranNastaliq"); // Set font
doc.setFontSize(150);
var persianText = "نگار شکار";
doc.text(persianText, 10, 60);
Live problem view :
https://evenz.ir/pdf/js/
Problem Image :
http://evenz.ir/pdf/1.jpg
Here is an article about arabic font to show it true :
https://learn.microsoft.com/en-us/typography/script-development/arabic
How to set some of this below tags in jsPDF or edit codes to fix this problem ?
I'm sure some of this parameter should set in jsPDF to show text true for special font's.
Cursive positioning
Feature Tag: "curs"
Contextual swash
Feature Tag: "cswh"
Kerning
Feature Tag: "kern"
Thank you ❤
Metadata
Metadata
Assignees
Labels
No labels