Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
94d15528
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
94d15528
编写于
10月 02, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor
上级
729f6347
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
21 deletion
+19
-21
src/hb-ot-map.hh
src/hb-ot-map.hh
+1
-0
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+18
-21
未找到文件。
src/hb-ot-map.hh
浏览文件 @
94d15528
...
@@ -175,6 +175,7 @@ enum hb_ot_map_feature_flags_t
...
@@ -175,6 +175,7 @@ enum hb_ot_map_feature_flags_t
F_MANUAL_ZWJ
=
0x0008u
,
/* Don't skip over ZWJ when matching **input**. */
F_MANUAL_ZWJ
=
0x0008u
,
/* Don't skip over ZWJ when matching **input**. */
F_MANUAL_JOINERS
=
F_MANUAL_ZWNJ
|
F_MANUAL_ZWJ
,
F_MANUAL_JOINERS
=
F_MANUAL_ZWNJ
|
F_MANUAL_ZWJ
,
F_GLOBAL_MANUAL_JOINERS
=
F_GLOBAL
|
F_MANUAL_JOINERS
,
F_GLOBAL_MANUAL_JOINERS
=
F_GLOBAL
|
F_MANUAL_JOINERS
,
F_GLOBAL_HAS_FALLBACK
=
F_GLOBAL
|
F_HAS_FALLBACK
,
F_GLOBAL_SEARCH
=
0x0010u
,
/* If feature not found in LangSys, look for it in global feature list and pick one. */
F_GLOBAL_SEARCH
=
0x0010u
,
/* If feature not found in LangSys, look for it in global feature list and pick one. */
F_RANDOM
=
0x0020u
/* Randomly select a glyph from an AlternateSubstFormat1 subtable. */
F_RANDOM
=
0x0020u
/* Randomly select a glyph from an AlternateSubstFormat1 subtable. */
};
};
...
...
src/hb-ot-shape.cc
浏览文件 @
94d15528
...
@@ -70,24 +70,26 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan,
...
@@ -70,24 +70,26 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan,
}
}
static
hb_tag_t
common_features
[]
=
static
const
hb_ot_map_feature_t
{
common_features
[]
=
HB_TAG
(
'c'
,
'c'
,
'm'
,
'p'
),
{
HB_TAG
(
'l'
,
'o'
,
'c'
,
'l'
),
{
HB_TAG
(
'c'
,
'c'
,
'm'
,
'p'
),
F_GLOBAL
},
HB_TAG
(
'm'
,
'a'
,
'r'
,
'k'
),
{
HB_TAG
(
'l'
,
'o'
,
'c'
,
'l'
),
F_GLOBAL
},
HB_TAG
(
'm'
,
'k'
,
'm'
,
'k'
),
{
HB_TAG
(
'm'
,
'a'
,
'r'
,
'k'
),
F_GLOBAL_MANUAL_JOINERS
},
HB_TAG
(
'r'
,
'l'
,
'i'
,
'g'
),
{
HB_TAG
(
'm'
,
'k'
,
'm'
,
'k'
),
F_GLOBAL_MANUAL_JOINERS
},
{
HB_TAG
(
'r'
,
'l'
,
'i'
,
'g'
),
F_GLOBAL
},
};
};
static
hb_tag_t
horizontal_features
[]
=
static
const
hb_ot_map_feature_t
horizontal_features
[]
=
{
{
HB_TAG
(
'c'
,
'a'
,
'l'
,
't'
)
,
{
HB_TAG
(
'c'
,
'a'
,
'l'
,
't'
),
F_GLOBAL
}
,
HB_TAG
(
'c'
,
'l'
,
'i'
,
'g'
)
,
{
HB_TAG
(
'c'
,
'l'
,
'i'
,
'g'
),
F_GLOBAL
}
,
HB_TAG
(
'c'
,
'u'
,
'r'
,
's'
)
,
{
HB_TAG
(
'c'
,
'u'
,
'r'
,
's'
),
F_GLOBAL
}
,
HB_TAG
(
'k'
,
'e'
,
'r'
,
'n'
)
,
{
HB_TAG
(
'k'
,
'e'
,
'r'
,
'n'
),
F_GLOBAL_HAS_FALLBACK
}
,
HB_TAG
(
'l'
,
'i'
,
'g'
,
'a'
)
,
{
HB_TAG
(
'l'
,
'i'
,
'g'
,
'a'
),
F_GLOBAL
}
,
HB_TAG
(
'r'
,
'c'
,
'l'
,
't'
)
,
{
HB_TAG
(
'r'
,
'c'
,
'l'
,
't'
),
F_GLOBAL
}
,
};
};
static
void
static
void
...
@@ -129,16 +131,11 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
...
@@ -129,16 +131,11 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
planner
->
shaper
->
collect_features
(
planner
);
planner
->
shaper
->
collect_features
(
planner
);
for
(
unsigned
int
i
=
0
;
i
<
ARRAY_LENGTH
(
common_features
);
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
ARRAY_LENGTH
(
common_features
);
i
++
)
map
->
add_feature
(
common_features
[
i
],
F_GLOBAL
|
map
->
add_feature
(
common_features
[
i
]);
(
common_features
[
i
]
==
HB_TAG
(
'm'
,
'a'
,
'r'
,
'k'
)
||
common_features
[
i
]
==
HB_TAG
(
'm'
,
'k'
,
'm'
,
'k'
)
?
F_MANUAL_JOINERS
:
F_NONE
));
if
(
HB_DIRECTION_IS_HORIZONTAL
(
props
->
direction
))
if
(
HB_DIRECTION_IS_HORIZONTAL
(
props
->
direction
))
for
(
unsigned
int
i
=
0
;
i
<
ARRAY_LENGTH
(
horizontal_features
);
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
ARRAY_LENGTH
(
horizontal_features
);
i
++
)
map
->
add_feature
(
horizontal_features
[
i
],
F_GLOBAL
|
map
->
add_feature
(
horizontal_features
[
i
]);
(
horizontal_features
[
i
]
==
HB_TAG
(
'k'
,
'e'
,
'r'
,
'n'
)
?
F_HAS_FALLBACK
:
F_NONE
));
else
else
{
{
/* We really want to find a 'vert' feature if there's any in the font, no
/* We really want to find a 'vert' feature if there's any in the font, no
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录