Arabic font rendering
See original GitHub issueHey guys, I’ve seen this issue opened before, however I can’t get it to work properly for a custom Arabic font.
Here is how the HTML looks: http://prntscr.com/ckxcp3
And how the html2canvas 0.5.0-alpha1
looks: http://prnt.sc/ckxd1v
As you can see, the characters are all tangled up. Any ideas?
Update:
On line 2321 I replaced !hasUnicode
with hasUnicode
, which works almost perfect:
http://prnt.sc/ckxnjo
Now the font looks perfect, but normal characters “!” and “(” have wrong direction.
Update2: Managed to find a fix based on n-a-g-r-o-m’ solution [https://github.com/niklasvh/html2canvas/issues/686]
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Arabic "joined up" text in Freetype - fonts
It is indeed possible to do a simplified implementation of arabic text rendering. First you need to split the UTF8 text into Unicode...
Read more >Text Layout Requirements for the Arabic Script
The above examples use the Arabic Typesetting font. ... Rendering of letters depends not only on their place in the word (initial, medial, ......
Read more >Text Rendering - Globalization
Text rendering is the process of converting a string to a format that ... A typical example is the ligature of Arabic Lam...
Read more >Arabic font rendering The critics (see Figure 6)
This model is based on the layering composition. The combination of diacritics with letters requires a basic layering to combine any diacritics in...
Read more >How To Render Arabic Font Correctly?
i Tried To import Ariel Font,But it didnt Work either i Heard Something in Another Topic About manual glyph substitution
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Worked for me along with
letter-spacing: normal
sounds like the problem is fixed, just beware of
word-wrap : break-word
style too, it still splits the Arabic/Persian words into separate characters.