Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
6769f21d
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看板
提交
6769f21d
编写于
4月 05, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More moving code around
上级
2db2a566
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
src/hb-ot-shape-normalize.cc
src/hb-ot-shape-normalize.cc
+1
-1
src/hb-ot-shape-private.hh
src/hb-ot-shape-private.hh
+0
-8
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+1
-1
src/hb-unicode-private.hh
src/hb-unicode-private.hh
+8
-0
未找到文件。
src/hb-ot-shape-normalize.cc
浏览文件 @
6769f21d
...
...
@@ -145,7 +145,7 @@ decompose_multi_char_cluster (hb_ot_shape_context_t *c,
{
/* TODO Currently if there's a variation-selector we give-up, it's just too hard. */
for
(
unsigned
int
i
=
c
->
buffer
->
idx
;
i
<
end
;
i
++
)
if
(
unlikely
(
is_variation_selector
(
c
->
buffer
->
info
[
i
].
codepoint
)))
{
if
(
unlikely
(
_hb_unicode_
is_variation_selector
(
c
->
buffer
->
info
[
i
].
codepoint
)))
{
while
(
c
->
buffer
->
idx
<
end
)
c
->
buffer
->
next_glyph
();
return
;
...
...
src/hb-ot-shape-private.hh
浏览文件 @
6769f21d
...
...
@@ -90,14 +90,6 @@ struct hb_ot_shape_context_t
};
static
inline
hb_bool_t
is_variation_selector
(
hb_codepoint_t
unicode
)
{
return
unlikely
((
unicode
>=
0x180B
&&
unicode
<=
0x180D
)
||
/* MONGOLIAN FREE VARIATION SELECTOR ONE..THREE */
(
unicode
>=
0xFE00
&&
unicode
<=
0xFE0F
)
||
/* VARIATION SELECTOR-1..16 */
(
unicode
>=
0xE0100
&&
unicode
<=
0xE01EF
));
/* VARIATION SELECTOR-17..256 */
}
static
inline
void
hb_glyph_info_set_unicode_props
(
hb_glyph_info_t
*
info
,
hb_unicode_funcs_t
*
unicode
)
{
...
...
src/hb-ot-shape.cc
浏览文件 @
6769f21d
...
...
@@ -205,7 +205,7 @@ hb_map_glyphs (hb_font_t *font,
unsigned
int
count
=
buffer
->
len
-
1
;
for
(
buffer
->
idx
=
0
;
buffer
->
idx
<
count
;)
{
if
(
unlikely
(
is_variation_selector
(
buffer
->
info
[
buffer
->
idx
+
1
].
codepoint
)))
{
if
(
unlikely
(
_hb_unicode_
is_variation_selector
(
buffer
->
info
[
buffer
->
idx
+
1
].
codepoint
)))
{
hb_font_get_glyph
(
font
,
buffer
->
info
[
buffer
->
idx
].
codepoint
,
buffer
->
info
[
buffer
->
idx
+
1
].
codepoint
,
&
glyph
);
buffer
->
replace_glyph
(
glyph
);
buffer
->
skip_glyph
();
...
...
src/hb-unicode-private.hh
浏览文件 @
6769f21d
...
...
@@ -106,5 +106,13 @@ HB_INTERNAL unsigned int
_hb_unicode_modified_combining_class
(
hb_unicode_funcs_t
*
ufuncs
,
hb_codepoint_t
unicode
);
static
inline
hb_bool_t
_hb_unicode_is_variation_selector
(
hb_codepoint_t
unicode
)
{
return
unlikely
((
unicode
>=
0x180B
&&
unicode
<=
0x180D
)
||
/* MONGOLIAN FREE VARIATION SELECTOR ONE..THREE */
(
unicode
>=
0xFE00
&&
unicode
<=
0xFE0F
)
||
/* VARIATION SELECTOR-1..16 */
(
unicode
>=
0xE0100
&&
unicode
<=
0xE01EF
));
/* VARIATION SELECTOR-17..256 */
}
#endif
/* HB_UNICODE_PRIVATE_HH */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录