Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
d96838ef
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
大约 1 年 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d96838ef
编写于
7月 16, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow complex shapers overriding common features
In a new callback... Currently unused by all complex shapers.
上级
df50b847
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
62 addition
and
0 deletion
+62
-0
src/hb-ot-shape-complex-arabic.cc
src/hb-ot-shape-complex-arabic.cc
+6
-0
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+6
-0
src/hb-ot-shape-complex-misc.cc
src/hb-ot-shape-complex-misc.cc
+18
-0
src/hb-ot-shape-complex-private.hh
src/hb-ot-shape-complex-private.hh
+30
-0
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+2
-0
未找到文件。
src/hb-ot-shape-complex-arabic.cc
浏览文件 @
d96838ef
...
...
@@ -199,6 +199,12 @@ _hb_ot_shape_complex_collect_features_arabic (hb_ot_map_builder_t *map,
map
->
add_bool_feature
(
HB_TAG
(
'c'
,
's'
,
'w'
,
'h'
));
}
void
_hb_ot_shape_complex_override_features_arabic
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
{
}
hb_ot_shape_normalization_mode_t
_hb_ot_shape_complex_normalization_preference_arabic
(
void
)
{
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
d96838ef
...
...
@@ -217,6 +217,12 @@ _hb_ot_shape_complex_collect_features_indic (hb_ot_map_builder_t *map,
}
}
void
_hb_ot_shape_complex_override_features_indic
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
}
hb_ot_shape_normalization_mode_t
_hb_ot_shape_complex_normalization_preference_indic
(
void
)
...
...
src/hb-ot-shape-complex-misc.cc
浏览文件 @
d96838ef
...
...
@@ -42,6 +42,12 @@ _hb_ot_shape_complex_collect_features_default (hb_ot_map_builder_t *map HB_UNUSE
{
}
void
_hb_ot_shape_complex_override_features_default
(
hb_ot_map_builder_t
*
map
HB_UNUSED
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
}
hb_ot_shape_normalization_mode_t
_hb_ot_shape_complex_normalization_preference_default
(
void
)
{
...
...
@@ -74,6 +80,12 @@ _hb_ot_shape_complex_collect_features_hangul (hb_ot_map_builder_t *map,
map
->
add_bool_feature
(
hangul_features
[
i
]);
}
void
_hb_ot_shape_complex_override_features_hangul
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
}
hb_ot_shape_normalization_mode_t
_hb_ot_shape_complex_normalization_preference_hangul
(
void
)
{
...
...
@@ -97,6 +109,12 @@ _hb_ot_shape_complex_collect_features_thai (hb_ot_map_builder_t *map HB_UNUSED,
{
}
void
_hb_ot_shape_complex_override_features_thai
(
hb_ot_map_builder_t
*
map
HB_UNUSED
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
}
hb_ot_shape_normalization_mode_t
_hb_ot_shape_complex_normalization_preference_thai
(
void
)
{
...
...
src/hb-ot-shape-complex-private.hh
浏览文件 @
d96838ef
...
...
@@ -248,6 +248,36 @@ hb_ot_shape_complex_collect_features (hb_ot_complex_shaper_t shaper,
}
/*
* override_features()
*
* Called during shape_plan().
*
* Shapers should use map to override features and add callbacks after
* common features are added.
*/
typedef
void
hb_ot_shape_complex_override_features_func_t
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
);
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) \
HB_INTERNAL hb_ot_shape_complex_override_features_func_t _hb_ot_shape_complex_override_features_##name;
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_COMPLEX_SHAPER_IMPLEMENT
static
inline
void
hb_ot_shape_complex_override_features
(
hb_ot_complex_shaper_t
shaper
,
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
{
switch
(
shaper
)
{
default:
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) \
case hb_ot_complex_shaper_##name: _hb_ot_shape_complex_override_features_##name (map, props); return;
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_COMPLEX_SHAPER_IMPLEMENT
}
}
/*
* normalization_preference()
*
...
...
src/hb-ot-shape.cc
浏览文件 @
d96838ef
...
...
@@ -123,6 +123,8 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
else
ADD_FEATURES
(
vertical_features
);
hb_ot_shape_complex_override_features
(
planner
->
shaper
,
&
planner
->
map
,
props
);
#undef ADD_FEATURES
for
(
unsigned
int
i
=
0
;
i
<
num_user_features
;
i
++
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录