[HarfBuzz] order of glyphs presented to font features.
Ebrahim Byagowi
ebraminio at gmail.com
Fri Jun 23 21:14:18 UTC 2017
Interesting, I see the difference also,
./hb-view UthmanicHafs1\ Ver09.otf --direction=ltr ١٢
▁▁▅▅▄▁
▂▃▊▂▃ ▂▇ ▃▂
▁▖▅▃▖▉▅ ▗▖ ▃▆▟▖
▗▟ ▆▂ ▙▗▃▙▙▄▃▟ ▂▆ ▙▚
▗▟▖▙▆ ▇▅▗▁▙
▄ ▗ ▖ ▙ ▏
▊ ▅▅▟ ▋▌
▋▍ ▙ ▉
▉ ▙▍ ▋▌
▚ ▟ ▙ ▃
▙▖▅▟▃▁ ▁▃▖▅▗▟
▙▄ ▗▂ ▚▅▆▚▞▅▆▌ ▂▃ ▗▟
▄▗▁▅▙▄▁ ▚▁▅▟▄▆▃▙▇
▇▅ ▆ ▇▅ ▄▇
▇▆▆▆
and
./hb-view /Library/Fonts/Tahoma.ttf --direction=ltr ١٢
▖ ▙ ▂▁ ▁▃
▖ ▙
▄▄ ▄▄▅▆▇
▙ ▖
▋ ▍ ▖
▉
▋ ▎
▊ ▍
▊ ▍
▊ ▍
▋ ▊ ▍
on harfbuzz master, wanted to say font bug but I see CoreText is also deals
with this better:
[image: Inline image 1]
data:text/html;charset=utf8,<div style="font-family: 'KFGQPC Uthmanic
Script HAFS'; font-size: 900%">١٢
On Sat, Jun 24, 2017 at 1:07 AM, Eric Muller <emuller at amazon.com> wrote:
> It seems that when:
>
> hb_buffer_set_script (fBuffer, HB_SCRIPT_ARABIC);
> hb_buffer_set_direction (fBuffer, HB_DIRECTION_LTR);
> hb_buffer_add_utf32 (fBuffer, "١٢"); // pseudo code, of
> course
>
> then the glyphs are presented in the wrong order to the font features. You
> can see this with the font available at <http://fonts.qurancomplex.gov
> .sa/?page_id=42>. It's intended for the Quran (and only for the Quran;
> word doc at the same URL), and ligates sequences of digits for the end of
> ayah. The example above displays "end of ayah 21".
>
> I am using a slightly old version of Harfbuzz, so may be this has been
> fixed?
>
> Thanks,
> Eric.
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20170624/808bb7c4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 77065 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20170624/808bb7c4/attachment-0001.png>
More information about the HarfBuzz
mailing list