parallax/jsPDF

Custom font with Georgian text not working

Open

#3,080 opened on Jan 28, 2021

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (4,596 forks)batch import
Bugdifficulty:hardhacktoberfest

Repository metrics

Stars
 (28,280 stars)
PR merge metrics
 (No merged PRs in 30d)

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, " საბეჭდი და ტიპოგრაფიული ინდუსტრიის უშინაარსო ტექსტია")

Contributor guide