[HarfBuzz] Simplifying the hb-shape.cc example
Nicolas Rougier
Nicolas.Rougier at inria.fr
Sat Jan 7 09:11:24 PST 2012
That would be great and I'm eager to test it. I will post the complete solution if it works (or maybe your code comes with some example as well ?)
Nicolas
On Jan 6, 2012, at 18:35 , Khaled Hosny wrote:
> On Fri, Jan 06, 2012 at 10:00:02AM -0700, Deron Kazmaier wrote:
>> I've been where you are! I have a set of hb unicode functions I wrote up
>> because I did not want to depend on glib or icu either for my test program. It
>> is a handful of simple functions and a rather large file of data, and might not
>> work for you, but if you want I am happy to send them to you (about 210k
>> uncompressed). I also wrote a small (rather ugly) program that parses the
>> unicode data files to generate the tables it uses.
>>
>> Also, it is possible to get simple strings of right-to-left to work, if you use
>> the functions to determine the primary script and direction of the run. No
>> mixed rtl/ltr, but at least arabic/hebrew would work (It does for me at least).
>
> To get proper mixed rtl/ltr (AKA BiDi) you need to either implement
> Unicode BiDi algorithm yourself (not for the faint of heart) or use e.g.
> fribidi, to determine rtl/ltr runs and then do the shaping with
> harfbuzz.
>
> Regards,
> Khaled
More information about the HarfBuzz
mailing list