parallax/jsPDF

Custom font with Georgian text not working

Open

#3 080 ouverte le 28 janv. 2021

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)JavaScript (4 596 forks)batch import
Bugdifficulty:hardhacktoberfest

Métriques du dépôt

Stars
 (28 280 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Seems like there is a bug with custom fonts and Georgian text. Repro: https://github.com/miriankakhidze/jspdf-georgian.

The example uses the Calibri font. It works for English text but not for Georgian. The html function is also not the problem, because this also fails:

doc.setFont("CalibriRegular", "normal")
doc.text(20,20, "Lorem Ipsum")
doc.text(20,40, " საბეჭდი და ტიპოგრაფიული ინდუსტრიის უშინაარსო ტექსტია")

Guide contributeur