Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
e56d4ff4
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看板
提交
e56d4ff4
编写于
8月 13, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename hb_ot_meta_get_entries() to +hb_ot_meta_get_entry_tags()
上级
aade9b70
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
15 deletion
+15
-15
docs/harfbuzz-sections.txt
docs/harfbuzz-sections.txt
+1
-1
src/hb-ot-meta.cc
src/hb-ot-meta.cc
+4
-4
src/hb-ot-meta.h
src/hb-ot-meta.h
+4
-4
src/test-ot-meta.cc
src/test-ot-meta.cc
+2
-2
test/api/test-ot-face.c
test/api/test-ot-face.c
+1
-1
test/api/test-ot-meta.c
test/api/test-ot-meta.c
+3
-3
未找到文件。
docs/harfbuzz-sections.txt
浏览文件 @
e56d4ff4
...
...
@@ -613,7 +613,7 @@ hb_ot_math_get_glyph_assembly
<SECTION>
<FILE>hb-ot-meta</FILE>
hb_ot_meta_t
hb_ot_meta_get_entr
ie
s
hb_ot_meta_get_entr
y_tag
s
hb_ot_meta_reference_entry
</SECTION>
...
...
src/hb-ot-meta.cc
浏览文件 @
e56d4ff4
...
...
@@ -49,10 +49,10 @@
* Since: REPLACEME
**/
unsigned
int
hb_ot_meta_get_entr
ie
s
(
hb_face_t
*
face
,
unsigned
int
start_offset
,
unsigned
int
*
entries_count
,
/* IN/OUT. May be NULL. */
hb_ot_meta_tag_t
*
entries
/* OUT. May be NULL. */
)
hb_ot_meta_get_entr
y_tag
s
(
hb_face_t
*
face
,
unsigned
int
start_offset
,
unsigned
int
*
entries_count
,
/* IN/OUT. May be NULL. */
hb_ot_meta_tag_t
*
entries
/* OUT. May be NULL. */
)
{
return
face
->
table
.
meta
->
get_entries
(
start_offset
,
entries_count
,
entries
);
}
...
...
src/hb-ot-meta.h
浏览文件 @
e56d4ff4
...
...
@@ -58,10 +58,10 @@ typedef enum {
}
hb_ot_meta_tag_t
;
HB_EXTERN
unsigned
int
hb_ot_meta_get_entr
ie
s
(
hb_face_t
*
face
,
unsigned
int
start_offset
,
unsigned
int
*
entries_count
,
/* IN/OUT. May be NULL. */
hb_ot_meta_tag_t
*
entries
/* OUT. May be NULL. */
);
hb_ot_meta_get_entr
y_tag
s
(
hb_face_t
*
face
,
unsigned
int
start_offset
,
unsigned
int
*
entries_count
,
/* IN/OUT. May be NULL. */
hb_ot_meta_tag_t
*
entries
/* OUT. May be NULL. */
);
HB_EXTERN
hb_blob_t
*
hb_ot_meta_reference_entry
(
hb_face_t
*
face
,
hb_ot_meta_tag_t
meta_tag
);
...
...
src/test-ot-meta.cc
浏览文件 @
e56d4ff4
...
...
@@ -48,11 +48,11 @@ main (int argc, char **argv)
unsigned
int
count
=
0
;
#ifndef HB_NO_META
count
=
hb_ot_meta_get_entr
ie
s
(
face
,
0
,
nullptr
,
nullptr
);
count
=
hb_ot_meta_get_entr
y_tag
s
(
face
,
0
,
nullptr
,
nullptr
);
hb_ot_meta_tag_t
*
tags
=
(
hb_ot_meta_tag_t
*
)
malloc
(
sizeof
(
hb_ot_meta_tag_t
)
*
count
);
hb_ot_meta_get_entr
ie
s
(
face
,
0
,
&
count
,
tags
);
hb_ot_meta_get_entr
y_tag
s
(
face
,
0
,
&
count
,
tags
);
for
(
unsigned
i
=
0
;
i
<
count
;
++
i
)
{
hb_blob_t
*
entry
=
hb_ot_meta_reference_entry
(
face
,
tags
[
i
]);
...
...
test/api/test-ot-face.c
浏览文件 @
e56d4ff4
...
...
@@ -90,7 +90,7 @@ test_face (hb_face_t *face,
hb_ot_math_get_min_connector_overlap
(
font
,
HB_DIRECTION_RTL
);
hb_ot_math_get_glyph_assembly
(
font
,
cp
,
HB_DIRECTION_BTT
,
0
,
NULL
,
NULL
,
NULL
);
hb_ot_meta_get_entr
ie
s
(
face
,
0
,
NULL
,
NULL
);
hb_ot_meta_get_entr
y_tag
s
(
face
,
0
,
NULL
,
NULL
);
hb_blob_destroy
(
hb_ot_meta_reference_entry
(
face
,
HB_OT_META_TAG_DESIGN_LANGUAGES
));
hb_ot_metrics_get_position
(
font
,
HB_OT_METRICS_TAG_HORIZONTAL_ASCENDER
,
NULL
);
...
...
test/api/test-ot-meta.c
浏览文件 @
e56d4ff4
...
...
@@ -35,18 +35,18 @@ test_ot_meta_get_entries (void)
hb_ot_meta_tag_t
entries
[
2
];
unsigned
int
entries_count
=
2
;
g_assert_cmpint
(
hb_ot_meta_get_entr
ie
s
(
face
,
0
,
&
entries_count
,
entries
),
==
,
5
);
g_assert_cmpint
(
hb_ot_meta_get_entr
y_tag
s
(
face
,
0
,
&
entries_count
,
entries
),
==
,
5
);
g_assert_cmpint
(
entries_count
,
==
,
2
);
g_assert_cmpint
(
entries
[
0
],
==
,
HB_TAG
(
'a'
,
'p'
,
'p'
,
'l'
));
g_assert_cmpint
(
entries
[
1
],
==
,
HB_TAG
(
'b'
,
'i'
,
'l'
,
'd'
));
entries_count
=
1
;
g_assert_cmpint
(
hb_ot_meta_get_entr
ie
s
(
face
,
2
,
&
entries_count
,
entries
),
==
,
5
);
g_assert_cmpint
(
hb_ot_meta_get_entr
y_tag
s
(
face
,
2
,
&
entries_count
,
entries
),
==
,
5
);
g_assert_cmpint
(
entries_count
,
==
,
1
);
g_assert_cmpint
(
entries
[
0
],
==
,
HB_TAG
(
'd'
,
'l'
,
'n'
,
'g'
));
entries_count
=
2
;
g_assert_cmpint
(
hb_ot_meta_get_entr
ie
s
(
face
,
4
,
&
entries_count
,
entries
),
==
,
5
);
g_assert_cmpint
(
hb_ot_meta_get_entr
y_tag
s
(
face
,
4
,
&
entries_count
,
entries
),
==
,
5
);
g_assert_cmpint
(
entries_count
,
==
,
1
);
g_assert_cmpint
(
entries
[
0
],
==
,
HB_TAG
(
's'
,
'l'
,
'n'
,
'g'
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录