Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
9779e602
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看板
提交
9779e602
编写于
11月 03, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[test] Add test for empty face
上级
0b0b38ec
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
95 addition
and
0 deletion
+95
-0
test/api/Makefile.am
test/api/Makefile.am
+1
-0
test/api/test-ot-face.c
test/api/test-ot-face.c
+94
-0
未找到文件。
test/api/Makefile.am
浏览文件 @
9779e602
...
@@ -36,6 +36,7 @@ TEST_PROGS = \
...
@@ -36,6 +36,7 @@ TEST_PROGS = \
test-font
\
test-font
\
test-map
\
test-map
\
test-object
\
test-object
\
test-ot-face
\
test-set
\
test-set
\
test-shape
\
test-shape
\
test-subset
\
test-subset
\
...
...
test/api/test-ot-face.c
0 → 100644
浏览文件 @
9779e602
/*
* Copyright © 2011 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copyright notice and the following two paragraphs appear in
* all copies of this software.
*
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
* Google Author(s): Behdad Esfahbod
*/
#include "hb-test.h"
#include <hb-ot.h>
/* Unit tests for hb-ot-*.h */
static
void
test_ot_face_empty
(
void
)
{
hb_face_t
*
face
=
hb_face_get_empty
();
hb_font_t
*
font
=
hb_font_create
(
face
);
hb_set_t
*
set
=
hb_set_create
();
hb_face_collect_unicodes
(
face
,
set
);
hb_face_collect_variation_selectors
(
face
,
set
);
hb_face_collect_variation_unicodes
(
face
,
0
,
set
);
hb_ot_color_has_palettes
(
face
);
hb_ot_color_palette_get_count
(
face
);
hb_ot_color_palette_get_name_id
(
face
,
0
);
hb_ot_color_palette_color_get_name_id
(
face
,
0
);
hb_ot_color_palette_get_flags
(
face
,
0
);
hb_ot_color_palette_get_colors
(
face
,
0
,
0
,
NULL
,
NULL
);
hb_ot_color_has_layers
(
face
);
hb_ot_color_glyph_get_layers
(
face
,
0
,
0
,
NULL
,
NULL
);
hb_ot_color_has_svg
(
face
);
hb_ot_color_glyph_reference_svg
(
face
,
0
);
hb_ot_color_has_png
(
face
);
hb_ot_color_glyph_reference_png
(
font
,
0
);
hb_ot_layout_has_glyph_classes
(
face
);
hb_ot_layout_has_substitution
(
face
);
hb_ot_layout_has_positioning
(
face
);
hb_ot_math_has_data
(
face
);
hb_ot_math_get_constant
(
font
,
0
);
hb_ot_math_get_glyph_italics_correction
(
font
,
0
);
hb_ot_math_get_glyph_top_accent_attachment
(
font
,
0
);
hb_ot_math_is_glyph_extended_shape
(
face
,
0
);
hb_ot_math_get_glyph_kerning
(
font
,
0
,
0
,
0
);
hb_ot_math_get_glyph_variants
(
font
,
0
,
0
,
0
,
NULL
,
NULL
);
hb_ot_math_get_min_connector_overlap
(
font
,
0
);
hb_ot_math_get_glyph_assembly
(
font
,
0
,
0
,
0
,
NULL
,
NULL
,
NULL
);
hb_ot_name_list_names
(
face
,
NULL
);
hb_ot_name_get_utf8
(
face
,
0
,
NULL
,
NULL
,
NULL
);
hb_ot_name_get_utf16
(
face
,
0
,
NULL
,
NULL
,
NULL
);
hb_ot_name_get_utf32
(
face
,
0
,
NULL
,
NULL
,
NULL
);
hb_ot_var_get_axis_count
(
face
);
hb_ot_var_get_axes
(
face
,
0
,
NULL
,
NULL
);
hb_ot_var_normalize_variations
(
face
,
NULL
,
0
,
NULL
,
0
);
hb_ot_var_normalize_coords
(
face
,
0
,
NULL
,
NULL
);
hb_set_destroy
(
set
);
hb_font_destroy
(
font
);
hb_face_destroy
(
face
);
}
int
main
(
int
argc
,
char
**
argv
)
{
hb_test_init
(
&
argc
,
&
argv
);
hb_test_add
(
test_ot_face_empty
);
return
hb_test_run
();
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录