From: Behdad Esfahbod Date: Wed, 20 May 2009 08:51:30 +0000 (-0400) Subject: [GPOS] Finally it's working, up to Cursive X-Git-Tag: submit/master/20120920.151126~7^2~1188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1593a6e620ee6a8184487185d1c95e0d1820ba5;p=framework%2Fuifw%2Fharfbuzz.git [GPOS] Finally it's working, up to Cursive Wow, IranNastaliq renders perfectly again! --- diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index ced7c95..3c1625c 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -89,6 +89,30 @@ hb_ot_layout_set_direction (hb_ot_layout_t *layout, layout->gpos_info.r2l = !!r2l; } +void +hb_ot_layout_set_hinting (hb_ot_layout_t *layout, + hb_bool_t hinted) +{ + layout->gpos_info.dvi = !hinted; +} + +void +hb_ot_layout_set_scale (hb_ot_layout_t *layout, + hb_16dot16_t x_scale, hb_16dot16_t y_scale) +{ + layout->gpos_info.x_scale = x_scale; + layout->gpos_info.y_scale = y_scale; +} + +void +hb_ot_layout_set_ppem (hb_ot_layout_t *layout, + unsigned int x_ppem, unsigned int y_ppem) +{ + layout->gpos_info.x_ppem = x_ppem; + layout->gpos_info.y_ppem = y_ppem; +} + + /* * GDEF */ diff --git a/src/hb-ot-layout.h b/src/hb-ot-layout.h index 3e83c36..148c609 100644 --- a/src/hb-ot-layout.h +++ b/src/hb-ot-layout.h @@ -52,6 +52,18 @@ void hb_ot_layout_set_direction (hb_ot_layout_t *layout, hb_bool_t r2l); +void +hb_ot_layout_set_hinting (hb_ot_layout_t *layout, + hb_bool_t hinted); + +void +hb_ot_layout_set_scale (hb_ot_layout_t *layout, + hb_16dot16_t x_scale, hb_16dot16_t y_scale); + +void +hb_ot_layout_set_ppem (hb_ot_layout_t *layout, + unsigned int x_ppem, unsigned int y_ppem); + /* TODO sanitizing API/constructor (make_writable_func_t) */ /* TODO get_table_func_t constructor */