[HarfBuzz] hb-view

Behdad Esfahbod behdad at behdad.org
Wed Mar 16 11:04:24 PDT 2011


On 02/27/11 12:18, Khaled Hosny wrote:
> It is not usable for RTL currently (at least the ability to force
> direction even in absence of fribidi would to the job).

I "fixed" that for now:

New commits:
commit 3286fc0e9adc3f2874c9409e7fdb09e4d2b7dda1
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Mar 16 14:53:32 2011 -0300

    Let hb_shape() guess script and direction...

    - Rename HB_SCRIPT_INVALID_CODE to HB_SCRIPT_INVALID

    - Add HB_DIRECTION_INVALID

    - Make hb_script_get_horizontal_direction() public

    - Make hb_shape() guess script from buffer text (first non-common
      non-inherit script) if buffer script is set to HB_SCRIPT_INVALID (this
      is NOT the default.)

    - Make hb_shape() guess direction from buffer script if buffer direction
    is set to HB_DIRECTION_INVALID (this is NOT the default.)

    - Make hb-view.c set INVALID script and direction on the buffer.

    The above changes are meant to make hb-view fairly useful for uni-script
    uni-direction text.  The guessing behavior however is NOT the default of
    hb_shape() and must be asked for explicitly.  This is intended, because
    the guess is not a suitable substitute to full-fledged bidi and script
    segmentation.  It's just a testing tool.




More information about the HarfBuzz mailing list