Re: [css-text] Shaping for break-all/word-break

On Tue, Mar 8, 2016 at 12:17 PM, Behdad Esfahbod <behdad@behdad.org> wrote:

>
> Most shaping engines don't support this subtle distinction, but for
> example, HarfBuzz does.  When shaping a piece of text, you can pass to
> HarfBuzz the surrounding text as well and it will do the right thing
> regarding choosing the right forms for Arabic Joining.
>

Here is an example:

$ hb-shape NotoNaskhArabic-Regular.ttf --text=ب
[uni0628=0+1581]

$ hb-shape NotoNaskhArabic-Regular.ttf --text=ب --text-before=ب
[uni0628.fina=0+1673]

$ hb-shape NotoNaskhArabic-Regular.ttf --text=ب --text-after=ب
[uni0628.init=0+564]

$ hb-shape NotoNaskhArabic-Regular.ttf --text=ب --text-before=ب --text-after=ب
[uni0628.medi=0+599]

Received on Tuesday, 8 March 2016 03:27:10 UTC