parallax/jsPDF

Contextual alternates and ligatures in hand-written fonts

Open

#3,242 创建于 2021年8月28日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (4,596 fork)batch import
Feature Requestdifficulty:hardhacktoberfest

仓库指标

Star
 (28,280 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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!

贡献者指南