[HarfBuzz] Using Harfbuzz & ICU & Glyphy in OpenES2 Engine

James Clark jjc at jclark.com
Thu Feb 13 05:54:03 CET 2014


On Thu, Feb 13, 2014 at 5:48 AM, Behdad Esfahbod <behdad at behdad.org> wrote:

>
> In short: You shape the whole paragraph using HarfBuzz, then create a
> line-break iterator with ICU and walk the text and glyph string together
> and
> find the best break opportunity to fill the line.  That can be
> mid-HarfBuzz-cluster.  After that, you reshape the line, but can continue
> with
> the original shaped-paragraph for the next lines.
>

I was wondering how this is supposed to deal with hyphenated Arabic text.
The css3-text spec says: "When shaping scripts such as Arabic are allowed
to break within words due to hyphenation, the characters must still be
shaped as if the word were not broken."  When the line after the hyphenated
break is reshaped, how do you get the first character to be shaped as a
medial rather than an initial?

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20140213/70f93058/attachment.html>


More information about the HarfBuzz mailing list