Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
e715784b
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
11 个月 前同步成功
通知
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e715784b
编写于
8月 08, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename get_table to reference_table in all API
上级
670c8734
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
19 deletion
+19
-19
src/hb-font-private.hh
src/hb-font-private.hh
+3
-3
src/hb-font.cc
src/hb-font.cc
+10
-10
src/hb-font.h
src/hb-font.h
+4
-4
src/hb-ft.cc
src/hb-ft.cc
+2
-2
未找到文件。
src/hb-font-private.hh
浏览文件 @
e715784b
...
@@ -88,9 +88,9 @@ struct _hb_face_t {
...
@@ -88,9 +88,9 @@ struct _hb_face_t {
hb_bool_t
immutable
;
hb_bool_t
immutable
;
hb_
get_table_func_t
get
_table
;
hb_
reference_table_func_t
reference
_table
;
void
*
user_data
;
void
*
user_data
;
hb_destroy_func_t
destroy
;
hb_destroy_func_t
destroy
;
struct
hb_ot_layout_t
*
ot_layout
;
struct
hb_ot_layout_t
*
ot_layout
;
...
...
src/hb-font.cc
浏览文件 @
e715784b
...
@@ -532,7 +532,7 @@ static hb_face_t _hb_face_nil = {
...
@@ -532,7 +532,7 @@ static hb_face_t _hb_face_nil = {
TRUE
,
/* immutable */
TRUE
,
/* immutable */
NULL
,
/*
get
_table */
NULL
,
/*
reference
_table */
NULL
,
/* user_data */
NULL
,
/* user_data */
NULL
,
/* destroy */
NULL
,
/* destroy */
...
@@ -543,19 +543,19 @@ static hb_face_t _hb_face_nil = {
...
@@ -543,19 +543,19 @@ static hb_face_t _hb_face_nil = {
hb_face_t
*
hb_face_t
*
hb_face_create_for_tables
(
hb_
get_table_func_t
get
_table
,
hb_face_create_for_tables
(
hb_
reference_table_func_t
reference
_table
,
void
*
user_data
,
void
*
user_data
,
hb_destroy_func_t
destroy
)
hb_destroy_func_t
destroy
)
{
{
hb_face_t
*
face
;
hb_face_t
*
face
;
if
(
!
get
_table
||
!
(
face
=
hb_object_create
<
hb_face_t
>
()))
{
if
(
!
reference
_table
||
!
(
face
=
hb_object_create
<
hb_face_t
>
()))
{
if
(
destroy
)
if
(
destroy
)
destroy
(
user_data
);
destroy
(
user_data
);
return
&
_hb_face_nil
;
return
&
_hb_face_nil
;
}
}
face
->
get_table
=
get
_table
;
face
->
reference_table
=
reference
_table
;
face
->
user_data
=
user_data
;
face
->
user_data
=
user_data
;
face
->
destroy
=
destroy
;
face
->
destroy
=
destroy
;
...
@@ -595,7 +595,7 @@ _hb_face_for_data_closure_destroy (hb_face_for_data_closure_t *closure)
...
@@ -595,7 +595,7 @@ _hb_face_for_data_closure_destroy (hb_face_for_data_closure_t *closure)
}
}
static
hb_blob_t
*
static
hb_blob_t
*
_hb_face_for_data_
get
_table
(
hb_face_t
*
face
HB_UNUSED
,
hb_tag_t
tag
,
void
*
user_data
)
_hb_face_for_data_
reference
_table
(
hb_face_t
*
face
HB_UNUSED
,
hb_tag_t
tag
,
void
*
user_data
)
{
{
hb_face_for_data_closure_t
*
data
=
(
hb_face_for_data_closure_t
*
)
user_data
;
hb_face_for_data_closure_t
*
data
=
(
hb_face_for_data_closure_t
*
)
user_data
;
...
@@ -621,7 +621,7 @@ hb_face_create (hb_blob_t *blob,
...
@@ -621,7 +621,7 @@ hb_face_create (hb_blob_t *blob,
if
(
unlikely
(
!
closure
))
if
(
unlikely
(
!
closure
))
return
&
_hb_face_nil
;
return
&
_hb_face_nil
;
return
hb_face_create_for_tables
(
_hb_face_for_data_
get
_table
,
return
hb_face_create_for_tables
(
_hb_face_for_data_
reference
_table
,
closure
,
closure
,
(
hb_destroy_func_t
)
_hb_face_for_data_closure_destroy
);
(
hb_destroy_func_t
)
_hb_face_for_data_closure_destroy
);
}
}
...
@@ -700,10 +700,10 @@ hb_face_reference_table (hb_face_t *face,
...
@@ -700,10 +700,10 @@ hb_face_reference_table (hb_face_t *face,
{
{
hb_blob_t
*
blob
;
hb_blob_t
*
blob
;
if
(
unlikely
(
!
face
||
!
face
->
get
_table
))
if
(
unlikely
(
!
face
||
!
face
->
reference
_table
))
return
hb_blob_get_empty
();
return
hb_blob_get_empty
();
blob
=
face
->
get
_table
(
face
,
tag
,
face
->
user_data
);
blob
=
face
->
reference
_table
(
face
,
tag
,
face
->
user_data
);
if
(
unlikely
(
!
blob
))
if
(
unlikely
(
!
blob
))
return
hb_blob_get_empty
();
return
hb_blob_get_empty
();
...
...
src/hb-font.h
浏览文件 @
e715784b
...
@@ -44,13 +44,13 @@ hb_face_t *
...
@@ -44,13 +44,13 @@ hb_face_t *
hb_face_create
(
hb_blob_t
*
blob
,
hb_face_create
(
hb_blob_t
*
blob
,
unsigned
int
index
);
unsigned
int
index
);
typedef
hb_blob_t
*
(
*
hb_
get
_table_func_t
)
(
hb_face_t
*
face
,
hb_tag_t
tag
,
void
*
user_data
);
typedef
hb_blob_t
*
(
*
hb_
reference
_table_func_t
)
(
hb_face_t
*
face
,
hb_tag_t
tag
,
void
*
user_data
);
/* calls destroy() when not needing user_data anymore */
/* calls destroy() when not needing user_data anymore */
hb_face_t
*
hb_face_t
*
hb_face_create_for_tables
(
hb_
get_table_func_t
get
_table
,
hb_face_create_for_tables
(
hb_
reference_table_func_t
reference
_table
,
void
*
user_data
,
void
*
user_data
,
hb_destroy_func_t
destroy
);
hb_destroy_func_t
destroy
);
hb_face_t
*
hb_face_t
*
hb_face_get_empty
(
void
);
hb_face_get_empty
(
void
);
...
...
src/hb-ft.cc
浏览文件 @
e715784b
...
@@ -243,7 +243,7 @@ hb_ft_get_font_funcs (void)
...
@@ -243,7 +243,7 @@ hb_ft_get_font_funcs (void)
static
hb_blob_t
*
static
hb_blob_t
*
get
_table
(
hb_face_t
*
face
HB_UNUSED
,
hb_tag_t
tag
,
void
*
user_data
)
reference
_table
(
hb_face_t
*
face
HB_UNUSED
,
hb_tag_t
tag
,
void
*
user_data
)
{
{
FT_Face
ft_face
=
(
FT_Face
)
user_data
;
FT_Face
ft_face
=
(
FT_Face
)
user_data
;
FT_Byte
*
buffer
;
FT_Byte
*
buffer
;
...
@@ -291,7 +291,7 @@ hb_ft_face_create (FT_Face ft_face,
...
@@ -291,7 +291,7 @@ hb_ft_face_create (FT_Face ft_face,
face
=
hb_face_create
(
blob
,
ft_face
->
face_index
);
face
=
hb_face_create
(
blob
,
ft_face
->
face_index
);
hb_blob_destroy
(
blob
);
hb_blob_destroy
(
blob
);
}
else
{
}
else
{
face
=
hb_face_create_for_tables
(
get
_table
,
ft_face
,
destroy
);
face
=
hb_face_create_for_tables
(
reference
_table
,
ft_face
,
destroy
);
}
}
return
face
;
return
face
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录