papandreou / subset-font

Create a subset of a TrueType/OpenType/WOFF/WOFF2 font using the wasm build of harfbuzz/hb-subset
BSD 3-Clause "New" or "Revised" License
85 stars 6 forks source link

Handle strings with UTF-16 surrogate pairs #16

Closed MLoughry closed 2 years ago

MLoughry commented 2 years ago

Fixes the code that iterates through the subset text for codepoints to handle UTF-16 surrogate pairs.

Fixes #15