Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
3d3df557
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看板
提交
3d3df557
编写于
10月 22, 2018
作者:
M
Michiharu Ariza
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix build attempt
上级
570b77f7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
23 deletion
+23
-23
src/hb-ot-cff-common.hh
src/hb-ot-cff-common.hh
+4
-1
test/api/test-ot-extents-cff.c
test/api/test-ot-extents-cff.c
+5
-6
test/api/test-subset-cff1.c
test/api/test-subset-cff1.c
+9
-10
test/api/test-subset-cff2.c
test/api/test-subset-cff2.c
+5
-6
未找到文件。
src/hb-ot-cff-common.hh
浏览文件 @
3d3df557
...
...
@@ -380,8 +380,11 @@ struct Remap : hb_vector_t<hb_codepoint_t>
return
true
;
}
inline
bool
includes
(
hb_codepoint_t
id
)
const
{
return
(
id
<
len
)
&&
((
*
this
)[
id
]
!=
CFF_UNDEF_CODE
);
}
inline
bool
excludes
(
hb_codepoint_t
id
)
const
{
return
(
id
<
len
)
&&
((
*
this
)[
id
]
==
CFF_UNDEF_CODE
);
}
{
return
!
includes
(
i
);
}
inline
hb_codepoint_t
operator
[]
(
hb_codepoint_t
i
)
const
{
...
...
test/api/test-ot-extents-cff.c
浏览文件 @
3d3df557
...
...
@@ -25,7 +25,6 @@
*/
#include "hb-test.h"
#include "hb-subset-test.h" // for hb_subset_test_open_font
#include <hb-ot.h>
/* Unit tests for CFF/CFF2 glyph extents */
...
...
@@ -51,7 +50,7 @@ test_extents_cff1 (void)
hb_font_destroy
(
font
);
hb_face_t
*
face_j
=
hb_
subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,3041,4C2E.otf"
);
hb_face_t
*
face_j
=
hb_
test_open_font_file
(
"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
);
...
...
@@ -72,7 +71,7 @@ test_extents_cff1 (void)
static
void
test_extents_cff1_legacyops
(
void
)
{
hb_face_t
*
face
=
hb_
subset_test_open_font
(
"fonts/cff1_legacyops.otf"
);
hb_face_t
*
face
=
hb_
test_open_font_file
(
"fonts/cff1_legacyops.otf"
);
g_assert
(
face
);
hb_font_t
*
font
=
hb_font_create
(
face
);
hb_face_destroy
(
face
);
...
...
@@ -94,7 +93,7 @@ test_extents_cff1_legacyops (void)
static
void
test_extents_cff1_flex
(
void
)
{
hb_face_t
*
face
=
hb_
subset_test_open_font
(
"fonts/cff1_flex.otf"
);
hb_face_t
*
face
=
hb_
test_open_font_file
(
"fonts/cff1_flex.otf"
);
g_assert
(
face
);
hb_font_t
*
font
=
hb_font_create
(
face
);
hb_face_destroy
(
face
);
...
...
@@ -116,7 +115,7 @@ test_extents_cff1_flex (void)
static
void
test_extents_cff2
(
void
)
{
hb_face_t
*
face
=
hb_
subset_test_open_font
(
"fonts/AdobeVFPrototype.abc.otf"
);
hb_face_t
*
face
=
hb_
test_open_font_file
(
"fonts/AdobeVFPrototype.abc.otf"
);
g_assert
(
face
);
hb_font_t
*
font
=
hb_font_create
(
face
);
hb_face_destroy
(
face
);
...
...
@@ -148,7 +147,7 @@ test_extents_cff2 (void)
static
void
test_extents_cff2_vsindex
(
void
)
{
hb_face_t
*
face
=
hb_
subset_test_open_font
(
"fonts/AdobeVFPrototype_vsindex.otf"
);
hb_face_t
*
face
=
hb_
test_open_font_file
(
"fonts/AdobeVFPrototype_vsindex.otf"
);
g_assert
(
face
);
hb_font_t
*
font
=
hb_font_create
(
face
);
hb_face_destroy
(
face
);
...
...
test/api/test-subset-cff1.c
浏览文件 @
3d3df557
...
...
@@ -25,14 +25,13 @@
*/
#include "hb-test.h"
#include "hb-subset-test.h"
/* Unit tests for CFF subsetting */
static
void
test_subset_cff1_noop
(
void
)
{
hb_face_t
*
face_abc
=
hb_
subset_test_open_font
(
"fonts/SourceSansPro-Regular.abc.otf"
);
hb_face_t
*
face_abc
=
hb_
test_open_font_file
(
"fonts/SourceSansPro-Regular.abc.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_face_t
*
face_abc_subset
;
...
...
@@ -51,8 +50,8 @@ test_subset_cff1_noop (void)
static
void
test_subset_cff1
(
void
)
{
hb_face_t
*
face_abc
=
hb_
subset_test_open_font
(
"fonts/SourceSansPro-Regular.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
subset_test_open_font
(
"fonts/SourceSansPro-Regular.ac.otf"
);
hb_face_t
*
face_abc
=
hb_
test_open_font_file
(
"fonts/SourceSansPro-Regular.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
test_open_font_file
(
"fonts/SourceSansPro-Regular.ac.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_face_t
*
face_abc_subset
;
...
...
@@ -71,8 +70,8 @@ test_subset_cff1 (void)
static
void
test_subset_cff1_strip_hints
(
void
)
{
hb_face_t
*
face_abc
=
hb_
subset_test_open_font
(
"fonts/SourceSansPro-Regular.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
subset_test_open_font
(
"fonts/SourceSansPro-Regular.ac.nohints.otf"
);
hb_face_t
*
face_abc
=
hb_
test_open_font_file
(
"fonts/SourceSansPro-Regular.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
test_open_font_file
(
"fonts/SourceSansPro-Regular.ac.nohints.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_subset_input_t
*
input
;
...
...
@@ -94,8 +93,8 @@ test_subset_cff1_strip_hints (void)
static
void
test_subset_cff1_j
(
void
)
{
hb_face_t
*
face_41_3041_4c2e
=
hb_
subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,3041,4C2E.otf"
);
hb_face_t
*
face_41_4c2e
=
hb_
subset_test_open_font
(
"fonts/SourceHanSans-Regular.41,4C2E.otf"
);
hb_face_t
*
face_41_3041_4c2e
=
hb_
test_open_font_file
(
"fonts/SourceHanSans-Regular.41,3041,4C2E.otf"
);
hb_face_t
*
face_41_4c2e
=
hb_
test_open_font_file
(
"fonts/SourceHanSans-Regular.41,4C2E.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_face_t
*
face_41_3041_4c2e_subset
;
...
...
@@ -114,8 +113,8 @@ test_subset_cff1_j (void)
static
void
test_subset_cff1_expert
(
void
)
{
hb_face_t
*
face
=
hb_
subset_test_open_font
(
"fonts/cff1_expert.otf"
);
hb_face_t
*
face_subset
=
hb_
subset_test_open_font
(
"fonts/cff1_expert.2D,F6E9,FB00.otf"
);
hb_face_t
*
face
=
hb_
test_open_font_file
(
"fonts/cff1_expert.otf"
);
hb_face_t
*
face_subset
=
hb_
test_open_font_file
(
"fonts/cff1_expert.2D,F6E9,FB00.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_set_add
(
codepoints
,
0x2D
);
...
...
test/api/test-subset-cff2.c
浏览文件 @
3d3df557
...
...
@@ -25,14 +25,13 @@
*/
#include "hb-test.h"
#include "hb-subset-test.h"
/* Unit tests for CFF2 subsetting */
static
void
test_subset_cff2_noop
(
void
)
{
hb_face_t
*
face_abc
=
hb_
subset_test_open_font
(
"fonts/AdobeVFPrototype.abc.otf"
);
hb_face_t
*
face_abc
=
hb_
test_open_font_file
(
"fonts/AdobeVFPrototype.abc.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_face_t
*
face_abc_subset
;
...
...
@@ -51,8 +50,8 @@ test_subset_cff2_noop (void)
static
void
test_subset_cff2
(
void
)
{
hb_face_t
*
face_abc
=
hb_
subset_test_open_font
(
"fonts/AdobeVFPrototype.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
subset_test_open_font
(
"fonts/AdobeVFPrototype.ac.otf"
);
hb_face_t
*
face_abc
=
hb_
test_open_font_file
(
"fonts/AdobeVFPrototype.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
test_open_font_file
(
"fonts/AdobeVFPrototype.ac.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_face_t
*
face_abc_subset
;
...
...
@@ -71,8 +70,8 @@ test_subset_cff2 (void)
static
void
test_subset_cff2_strip_hints
(
void
)
{
hb_face_t
*
face_abc
=
hb_
subset_test_open_font
(
"fonts/AdobeVFPrototype.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
subset_test_open_font
(
"fonts/AdobeVFPrototype.ac.nohints.otf"
);
hb_face_t
*
face_abc
=
hb_
test_open_font_file
(
"fonts/AdobeVFPrototype.abc.otf"
);
hb_face_t
*
face_ac
=
hb_
test_open_font_file
(
"fonts/AdobeVFPrototype.ac.nohints.otf"
);
hb_set_t
*
codepoints
=
hb_set_create
();
hb_subset_input_t
*
input
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录