diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.42k stars 1.14k forks source link

Arabic Font: Some OpenType features are not applied correctly #2424

Open TheMikeyRoss opened 8 months ago

TheMikeyRoss commented 8 months ago

Describe the bug There's a an extra spacing between certain glyphs when using the font a font like IBM Plex Sans Arabic or Cairo

image font: IBM Plex Sans Arabic

image font: Cairo

To Reproduce a repl of the issue

Expected behavior The glyphs should be connected normally like this image

I mistakenly thought the issue was with IBM Plex Sans Arabic and I created an issue here but I verified that the same issue happens with many Arabic fonts and it's most likely an issue in @react-pdf/renderer

ywsada commented 5 months ago

Experiencing the same issue here