Greek custom fonts, not supported in new version.
See original GitHub issueI’m using the latest version of jsPDF and have managed to successfully implement custom fonts for almost any language (Cyrillic, Japanese etc)! But no matter what I have tried, Greek fonts are never correctly reproduced to .pdf. I encode them to Base64 using your converter and use this code:
var doc = new jsPDF();
doc.addFileToVFS("Arialbd.ttf", font);
doc.addFont("Arialbd.ttf", "arialbd", "bold");
doc.setFont('arialbd');
doc.text(50,50,'Καλημέρα');```
But instead of 'Καλημέρα' I see some bizarre characters being produced. And this happens with all the Greek fonts I have tried. Any idea why this happens with Greek characters? Is it a bug?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10
Top Results From Across the Web
Greek custom fonts, not supported in new version. · Issue #2174
I'm using the latest version of jsPDF and have managed to successfully implement custom fonts for almost any language (Cyrillic, ...
Read more >PostScript Type 1 fonts end of support - Adobe Support
Previous versions of Creative Cloud apps will not be able to support Type 1 fonts once support is ended for the operating system....
Read more >wordpress 6 theme.json custom fonts are not working
I was never able to get it to work correctly at the global settings or block level settings. I was able to apply...
Read more >Cloud fonts in Office - Microsoft Support
Font name File name Version
Abadi abadi.ttf 3.01
Abadi Extra Light abadiexlt.ttf 3.01
Agency FB Agencyr.ttf 1.03
Read more >Fonts - ArchWiki
With older applications that do not support fontconfig (e.g. GTK 1.x ... Roboto (ttf-roboto) – Default font for newer Android versions where ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
verified as a bug.
It works as expected if you use the latest jspdf (1.5.3) and set the font to bold (
doc.setFont('Arialbd', 'bold');
)index.zip