Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
da6aa3b0
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看板
提交
da6aa3b0
编写于
11月 11, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add hb_blob_ptr_t.destroy()
上级
bb9abb4e
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
15 addition
and
14 deletion
+15
-14
src/hb-blob.hh
src/hb-blob.hh
+1
-0
src/hb-ot-cmap-table.hh
src/hb-ot-cmap-table.hh
+1
-1
src/hb-ot-color-cbdt-table.hh
src/hb-ot-color-cbdt-table.hh
+2
-2
src/hb-ot-color-sbix-table.hh
src/hb-ot-color-sbix-table.hh
+1
-1
src/hb-ot-color-svg-table.hh
src/hb-ot-color-svg-table.hh
+1
-1
src/hb-ot-glyf-table.hh
src/hb-ot-glyf-table.hh
+2
-2
src/hb-ot-hmtx-table.hh
src/hb-ot-hmtx-table.hh
+3
-3
src/hb-ot-layout-gdef-table.hh
src/hb-ot-layout-gdef-table.hh
+1
-1
src/hb-ot-layout-gsubgpos.hh
src/hb-ot-layout-gsubgpos.hh
+1
-1
src/hb-ot-name-table.hh
src/hb-ot-name-table.hh
+1
-1
src/hb-ot-post-table.hh
src/hb-ot-post-table.hh
+1
-1
未找到文件。
src/hb-blob.hh
浏览文件 @
da6aa3b0
...
...
@@ -97,6 +97,7 @@ struct hb_blob_ptr_t
inline
const
T
*
get
(
void
)
const
{
return
b
->
as
<
T
>
();
}
inline
hb_blob_t
*
get_blob
(
void
)
const
{
return
b
.
get_raw
();
}
inline
unsigned
int
get_length
(
void
)
const
{
return
b
.
get
()
->
length
;
}
inline
void
destroy
(
void
)
{
hb_blob_destroy
(
b
.
get
());
b
=
nullptr
;
}
hb_nonnull_ptr_t
<
hb_blob_t
>
b
;
};
...
...
src/hb-ot-cmap-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -1050,7 +1050,7 @@ struct cmap
inline
void
fini
(
void
)
{
hb_blob_destroy
(
this
->
table
.
get_blob
()
);
this
->
table
.
destroy
(
);
}
inline
bool
get_nominal_glyph
(
hb_codepoint_t
unicode
,
...
...
src/hb-ot-color-cbdt-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -392,8 +392,8 @@ struct CBDT
inline
void
fini
(
void
)
{
hb_blob_destroy
(
this
->
cblc
.
get_blob
()
);
hb_blob_destroy
(
this
->
cbdt
.
get_blob
()
);
this
->
cblc
.
destroy
(
);
this
->
cbdt
.
destroy
(
);
}
inline
bool
get_extents
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
...
...
src/hb-ot-color-sbix-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -146,7 +146,7 @@ struct sbix
inline
void
fini
(
void
)
{
hb_blob_destroy
(
table
.
get_blob
()
);
table
.
destroy
(
);
}
inline
bool
has_data
()
const
...
...
src/hb-ot-color-svg-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -86,7 +86,7 @@ struct SVG
inline
void
fini
(
void
)
{
hb_blob_destroy
(
table
.
get_blob
()
);
table
.
destroy
(
);
}
inline
hb_blob_t
*
reference_blob_for_glyph
(
hb_codepoint_t
glyph_id
)
const
...
...
src/hb-ot-glyf-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -254,8 +254,8 @@ struct glyf
inline
void
fini
(
void
)
{
hb_blob_destroy
(
loca_table
.
get_blob
()
);
hb_blob_destroy
(
glyf_table
.
get_blob
()
);
loca_table
.
destroy
(
);
glyf_table
.
destroy
(
);
}
/*
...
...
src/hb-ot-hmtx-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -234,7 +234,7 @@ struct hmtxvmtx
if
(
unlikely
(
!
num_advances
))
{
num_metrics
=
num_advances
=
0
;
hb_blob_destroy
(
table
.
get_blob
()
);
table
.
destroy
(
);
table
=
hb_blob_get_empty
();
}
...
...
@@ -243,8 +243,8 @@ struct hmtxvmtx
inline
void
fini
(
void
)
{
hb_blob_destroy
(
table
.
get_blob
()
);
hb_blob_destroy
(
var_table
.
get_blob
()
);
table
.
destroy
(
);
var_table
.
destroy
(
);
}
/* TODO Add variations version. */
...
...
src/hb-ot-layout-gdef-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -412,7 +412,7 @@ struct GDEF
inline
void
fini
(
void
)
{
hb_blob_destroy
(
this
->
table
.
get_blob
()
);
this
->
table
.
destroy
(
);
}
hb_blob_ptr_t
<
GDEF
>
table
;
...
...
src/hb-ot-layout-gsubgpos.hh
浏览文件 @
da6aa3b0
...
...
@@ -2769,7 +2769,7 @@ struct GSUBGPOS
for
(
unsigned
int
i
=
0
;
i
<
this
->
lookup_count
;
i
++
)
this
->
accels
[
i
].
fini
();
free
(
this
->
accels
);
hb_blob_destroy
(
this
->
table
.
get_blob
()
);
this
->
table
.
destroy
(
);
}
hb_blob_ptr_t
<
T
>
table
;
...
...
src/hb-ot-name-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -220,7 +220,7 @@ struct name
inline
void
fini
(
void
)
{
this
->
names
.
fini
();
hb_blob_destroy
(
this
->
table
.
get_blob
()
);
this
->
table
.
destroy
(
);
}
inline
int
get_index
(
hb_ot_name_id_t
name_id
,
...
...
src/hb-ot-post-table.hh
浏览文件 @
da6aa3b0
...
...
@@ -123,7 +123,7 @@ struct post
{
index_to_offset
.
fini
();
free
(
gids_sorted_by_name
.
get
());
hb_blob_destroy
(
table
.
get_blob
()
);
table
.
destroy
(
);
}
inline
bool
get_glyph_name
(
hb_codepoint_t
glyph
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录