[HarfBuzz] Is it possible to use HarfBuzz instead of GLib for Unicode functions?

Behdad Esfahbod behdad at behdad.org
Fri Nov 6 20:45:39 UTC 2020


Hi Mehdi,

On Sun, Oct 25, 2020 at 7:24 AM Mehdi Sadeghi <mehdi at mehdix.ir> wrote:

> Dear all,
>
> I am currently using the following GLib functions in order to recognize
> certain charachteristics of the input text, such as script type (Arabic
> or Latin) and category:
>
> - g_unichar_get_script
>

We have this one: hb_unicode_script(). Combine that with
hb_unicode_funcs_get_default().


> - g_unichar_isalnum
> - g_unichar_isalpha
> - g_unichar_isdigit
>

We don't have these.


> I see HarfBuzz used to come with UCDN and now has its own
> implementation. I wonder whether I can replace above GLib functions
> using that or in general using HarfBuzz.
>
> I would appreciate if someone gives me some hints, references or
> perhaps examples on this.
>
> Please excuse my naivety in advance if this is some crystal clear topic
> and I have missed some obvious points, docs, etc.
>
> Thank you,
> Mehdi
>
> _______________________________________________
> 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/20201106/592bd8c0/attachment.htm>


More information about the HarfBuzz mailing list