Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
d05dded1
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,发现更多精彩内容 >>
提交
d05dded1
编写于
7月 07, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More code generation through preprocessor
上级
891c4755
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
29 addition
and
17 deletion
+29
-17
src/hb-ot-shape-complex-private.hh
src/hb-ot-shape-complex-private.hh
+29
-17
未找到文件。
src/hb-ot-shape-complex-private.hh
浏览文件 @
d05dded1
...
...
@@ -39,10 +39,16 @@ HB_BEGIN_DECLS
#define combining_class() var1.u8[1]
/* unicode combining_class (uint8_t) */
#define HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS \
HB_COMPLEX_SHAPER_IMPLEMENT (default)
/* should be first */
\
HB_COMPLEX_SHAPER_IMPLEMENT (arabic) \
HB_COMPLEX_SHAPER_IMPLEMENT (indic) \
/* ^--- Add new shapers here */
enum
hb_ot_complex_shaper_t
{
hb_ot_complex_shaper_default
,
hb_ot_complex_shaper_arabic
,
hb_ot_complex_shaper_indic
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) hb_ot_complex_shaper_##name
,
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_COMPLEX_SHAPER_IMPLEMENT
};
static
inline
hb_ot_complex_shaper_t
...
...
@@ -50,6 +56,9 @@ hb_ot_shape_complex_categorize (const hb_segment_properties_t *props)
{
switch
((
int
)
props
->
script
)
{
default:
return
hb_ot_complex_shaper_default
;
case
HB_SCRIPT_ARABIC
:
case
HB_SCRIPT_MANDAIC
:
case
HB_SCRIPT_MONGOLIAN
:
...
...
@@ -103,8 +112,7 @@ hb_ot_shape_complex_categorize (const hb_segment_properties_t *props)
case
HB_SCRIPT_TIBETAN
:
return
hb_ot_complex_shaper_indic
;
default:
return
hb_ot_complex_shaper_default
;
/* ^--- Add new shapers here */
}
}
...
...
@@ -119,9 +127,10 @@ hb_ot_shape_complex_categorize (const hb_segment_properties_t *props)
*/
typedef
void
hb_ot_shape_complex_collect_features_func_t
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
);
HB_INTERNAL
hb_ot_shape_complex_collect_features_func_t
_hb_ot_shape_complex_collect_features_default
;
HB_INTERNAL
hb_ot_shape_complex_collect_features_func_t
_hb_ot_shape_complex_collect_features_arabic
;
HB_INTERNAL
hb_ot_shape_complex_collect_features_func_t
_hb_ot_shape_complex_collect_features_indic
;
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) \
HB_INTERNAL hb_ot_shape_complex_collect_features_func_t _hb_ot_shape_complex_collect_features_##name;
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_COMPLEX_SHAPER_IMPLEMENT
static
inline
void
hb_ot_shape_complex_collect_features
(
hb_ot_complex_shaper_t
shaper
,
...
...
@@ -130,9 +139,10 @@ hb_ot_shape_complex_collect_features (hb_ot_complex_shaper_t shaper,
{
switch
(
shaper
)
{
default:
case
hb_ot_complex_shaper_default
:
_hb_ot_shape_complex_collect_features_default
(
map
,
props
);
return
;
case
hb_ot_complex_shaper_arabic
:
_hb_ot_shape_complex_collect_features_arabic
(
map
,
props
);
return
;
case
hb_ot_complex_shaper_indic
:
_hb_ot_shape_complex_collect_features_indic
(
map
,
props
);
return
;
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) \
case hb_ot_complex_shaper_##name: _hb_ot_shape_complex_collect_features_##name (map, props); return;
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_COMPLEX_SHAPER_IMPLEMENT
}
}
...
...
@@ -145,9 +155,10 @@ hb_ot_shape_complex_collect_features (hb_ot_complex_shaper_t shaper,
*/
typedef
void
hb_ot_shape_complex_setup_masks_func_t
(
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
);
HB_INTERNAL
hb_ot_shape_complex_setup_masks_func_t
_hb_ot_shape_complex_setup_masks_default
;
HB_INTERNAL
hb_ot_shape_complex_setup_masks_func_t
_hb_ot_shape_complex_setup_masks_arabic
;
HB_INTERNAL
hb_ot_shape_complex_setup_masks_func_t
_hb_ot_shape_complex_setup_masks_indic
;
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) \
HB_INTERNAL hb_ot_shape_complex_setup_masks_func_t _hb_ot_shape_complex_setup_masks_##name;
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_COMPLEX_SHAPER_IMPLEMENT
static
inline
void
hb_ot_shape_complex_setup_masks
(
hb_ot_complex_shaper_t
shaper
,
...
...
@@ -156,9 +167,10 @@ hb_ot_shape_complex_setup_masks (hb_ot_complex_shaper_t shaper,
{
switch
(
shaper
)
{
default:
case
hb_ot_complex_shaper_default
:
_hb_ot_shape_complex_setup_masks_default
(
map
,
buffer
);
return
;
case
hb_ot_complex_shaper_arabic
:
_hb_ot_shape_complex_setup_masks_arabic
(
map
,
buffer
);
return
;
case
hb_ot_complex_shaper_indic
:
_hb_ot_shape_complex_setup_masks_indic
(
map
,
buffer
);
return
;
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) \
case hb_ot_complex_shaper_##name: _hb_ot_shape_complex_setup_masks_##name (map, buffer); return;
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
#undef HB_COMPLEX_SHAPER_IMPLEMENT
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录