[HarfBuzz] Questions regarding hb_language_t

Ariel Malka ariel at chronotext.org
Sun Dec 15 15:21:31 PST 2013


Thank you Khaled and Behdad, the examples are demonstrating the point
clearly.

I created a new mini-project for testing "language-specific features":
http://goo.gl/oI2j5X

As you can see in the screenshot, success is only partial:

1. Russian vs Serbian: only the first letter is different
Text: бгдпт
Script: HB_SCRIPT_CYRILLIC
Left lang: ru; Right lang: sr

2. English vs Romanian: works as intended
Text: şţ
Script: HB_SCRIPT_LATIN
Left lang: en; Right lang: ro

3. Arabic vs Sindhi: no differences
Text: ههه ۴۵۶۷
Script: HB_SCRIPT_ARABIC
Left lang: ar; Right lang: sd (also tried "snd")

Should I activate some "special features" beyond hb_script_t and
hb_language_t?

Thanks,
Ariel



On Sun, Dec 15, 2013 at 8:39 PM, Behdad Esfahbod <behdad at behdad.org> wrote:

> On 13-12-15 10:02 AM, Khaled Hosny wrote:
> >> The first question I'm asking is therefore: what is the purpose
> >> > of hb_buffer_set_language()?
> >> > Or in other words: is there a combination which require both the
> language
> >> > and script values to be defined?
> > Many fonts have language-specific features, for example:
> > https://bugs.webkit.org/show_bug.cgi?id=37984
>
> See for example:
>
>   http://en.wikipedia.org/wiki/Pango
>
>   http://scripts.sil.org/cms/scripts/page.php?item_id=Scheherazade
>
> --
> behdad
> http://behdad.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20131216/8287b189/attachment.html>


More information about the HarfBuzz mailing list