提交 e1593a6e 编写于 作者: B Behdad Esfahbod

[GPOS] Finally it's working, up to Cursive

Wow, IranNastaliq renders perfectly again!
上级 0f7e6b2c
...@@ -89,6 +89,30 @@ hb_ot_layout_set_direction (hb_ot_layout_t *layout, ...@@ -89,6 +89,30 @@ hb_ot_layout_set_direction (hb_ot_layout_t *layout,
layout->gpos_info.r2l = !!r2l; 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 * GDEF
*/ */
......
...@@ -52,6 +52,18 @@ void ...@@ -52,6 +52,18 @@ void
hb_ot_layout_set_direction (hb_ot_layout_t *layout, hb_ot_layout_set_direction (hb_ot_layout_t *layout,
hb_bool_t r2l); 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 sanitizing API/constructor (make_writable_func_t) */
/* TODO get_table_func_t constructor */ /* TODO get_table_func_t constructor */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册