parallax/jsPDF

Contextual alternates and ligatures in hand-written fonts

Open

#3242 aperta il 28 ago 2021

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (4596 fork)batch import
Feature Requestdifficulty:hardhacktoberfest

Metriche repository

Star
 (28.280 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hello! I have prepared https://jsfiddle.net/utilmind/o1gbyL9j/, that demonstrates issue with contextual alternates for glyphs in "hand-written" fonts.

Please pay attention on the last characters in each word: "Hello world hey". You see that original HTML text have doesn't have tails in the final character of each word.

However if you create PDF with exactly the same text and exactly the same font (it's "Pacifico" from Google fonts), clicking the "Make PDF" button, you will see, that the words in produced PDF all have tails at the end.

Does jsPDF have a feature similar to "font-variant-ligatures" CSS property? Thanks!

Guida contributor