Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
a6b6faf2
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看板
提交
a6b6faf2
编写于
10月 11, 2018
作者:
M
Michiharu Ariza
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replaced CFF1 J subset font for better coverage
in api test-ot-extents-cff
上级
b5aa5dbb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
9 deletion
+24
-9
test/api/fonts/SourceHanSans-Regular.41,3041,4C2E.otf
test/api/fonts/SourceHanSans-Regular.41,3041,4C2E.otf
+0
-0
test/api/fonts/SourceHanSans-Regular.41,3041,4E9D.otf
test/api/fonts/SourceHanSans-Regular.41,3041,4E9D.otf
+0
-0
test/api/fonts/SourceHanSans-Regular.41,4C2E.otf
test/api/fonts/SourceHanSans-Regular.41,4C2E.otf
+0
-0
test/api/fonts/SourceHanSans-Regular.41,4E9D.otf
test/api/fonts/SourceHanSans-Regular.41,4E9D.otf
+0
-0
test/api/test-ot-extents-cff.c
test/api/test-ot-extents-cff.c
+15
-0
test/api/test-subset-cff1.c
test/api/test-subset-cff1.c
+9
-9
未找到文件。
test/api/fonts/SourceHanSans-Regular.41,3041,4C2E.otf
0 → 100644
浏览文件 @
a6b6faf2
文件已添加
test/api/fonts/SourceHanSans-Regular.41,3041,4E9D.otf
已删除
100644 → 0
浏览文件 @
b5aa5dbb
文件已删除
test/api/fonts/SourceHanSans-Regular.41,4C2E.otf
0 → 100644
浏览文件 @
a6b6faf2
文件已添加
test/api/fonts/SourceHanSans-Regular.41,4E9D.otf
已删除
100644 → 0
浏览文件 @
b5aa5dbb
文件已删除
test/api/test-ot-extents-cff.c
浏览文件 @
a6b6faf2
...
...
@@ -49,6 +49,21 @@ test_extents_cff1 (void)
g_assert_cmpint
(
extents
.
width
,
==
,
381
);
g_assert_cmpint
(
extents
.
height
,
==
,
-
510
);
hb_face_t
*
face_j
=
hb_subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,3041,4C2E.otf"
);
g_assert
(
face_j
);
hb_font_t
*
font_j
=
hb_font_create
(
face_j
);
hb_face_destroy
(
face_j
);
g_assert
(
font_j
);
hb_ot_font_set_funcs
(
font_j
);
hb_bool_t
result_j
=
hb_font_get_glyph_extents
(
font_j
,
3
,
&
extents
);
g_assert
(
result_j
);
g_assert_cmpint
(
extents
.
x_bearing
,
==
,
34
);
g_assert_cmpint
(
extents
.
y_bearing
,
==
,
840
);
g_assert_cmpint
(
extents
.
width
,
==
,
920
);
g_assert_cmpint
(
extents
.
height
,
==
,
-
907
);
hb_font_destroy
(
font
);
}
...
...
test/api/test-subset-cff1.c
浏览文件 @
a6b6faf2
...
...
@@ -94,21 +94,21 @@ test_subset_cff1_strip_hints (void)
static
void
test_subset_cff1_j
(
void
)
{
hb_face_t
*
face_41_3041_4
e9d
=
hb_subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,3041,4E9D
.otf"
);
hb_face_t
*
face_41_4
e9d
=
hb_subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,4E9D
.otf"
);
hb_face_t
*
face_41_3041_4
c2e
=
hb_subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,3041,4C2E
.otf"
);
hb_face_t
*
face_41_4
c2e
=
hb_subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,4C2E
.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_face_t
*
face_41_3041_4
e9d
_subset
;
hb_face_t
*
face_41_3041_4
c2e
_subset
;
hb_set_add
(
codepoints
,
0x41
);
hb_set_add
(
codepoints
,
0x4
E9D
);
face_41_3041_4
e9d_subset
=
hb_subset_test_create_subset
(
face_41_3041_4e9d
,
hb_subset_test_create_input
(
codepoints
));
hb_set_add
(
codepoints
,
0x4
C2E
);
face_41_3041_4
c2e_subset
=
hb_subset_test_create_subset
(
face_41_3041_4c2e
,
hb_subset_test_create_input
(
codepoints
));
hb_set_destroy
(
codepoints
);
hb_subset_test_check
(
face_41_4
e9d
,
face_41_3041_4e9d
_subset
,
HB_TAG
(
'C'
,
'F'
,
'F'
,
' '
));
hb_subset_test_check
(
face_41_4
c2e
,
face_41_3041_4c2e
_subset
,
HB_TAG
(
'C'
,
'F'
,
'F'
,
' '
));
hb_face_destroy
(
face_41_3041_4
e9d
_subset
);
hb_face_destroy
(
face_41_3041_4
e9d
);
hb_face_destroy
(
face_41_4
e9d
);
hb_face_destroy
(
face_41_3041_4
c2e
_subset
);
hb_face_destroy
(
face_41_3041_4
c2e
);
hb_face_destroy
(
face_41_4
c2e
);
}
int
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录