Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
93d592e0
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看板
提交
93d592e0
编写于
6月 05, 2019
作者:
Q
Qunxin Liu
提交者:
Behdad Esfahbod
6月 06, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[subset] post table to use _subset2
上级
db938479
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
17 deletion
+16
-17
src/hb-ot-post-table.hh
src/hb-ot-post-table.hh
+15
-16
src/hb-subset.cc
src/hb-subset.cc
+1
-1
未找到文件。
src/hb-ot-post-table.hh
浏览文件 @
93d592e0
...
@@ -73,26 +73,25 @@ struct post
...
@@ -73,26 +73,25 @@ struct post
{
{
static
constexpr
hb_tag_t
tableTag
=
HB_OT_TAG_post
;
static
constexpr
hb_tag_t
tableTag
=
HB_OT_TAG_post
;
bool
subset
(
hb_subset_plan_t
*
plan
)
const
void
serialize
(
hb_serialize_context_t
*
c
)
const
{
{
unsigned
int
post_prime_length
;
post
*
post_prime
=
c
->
allocate_min
<
post
>
();
hb_blob_t
*
post_blob
=
hb_sanitize_context_t
().
reference_table
<
post
>
(
plan
->
source
);
if
(
unlikely
(
!
post_prime
))
return
;
hb_blob_t
*
post_prime_blob
=
hb_blob_create_sub_blob
(
post_blob
,
0
,
post
::
min_size
);
post
*
post_prime
=
(
post
*
)
hb_blob_get_data_writable
(
post_prime_blob
,
&
post_prime_length
);
hb_blob_destroy
(
post_blob
);
if
(
unlikely
(
!
post_prime
||
post_prime_length
!=
post
::
min_size
))
{
hb_blob_destroy
(
post_prime_blob
);
DEBUG_MSG
(
SUBSET
,
nullptr
,
"Invalid source post table with length %d."
,
post_prime_length
);
return
false
;
}
memcpy
(
post_prime
,
this
,
post
::
min_size
);
post_prime
->
version
.
major
=
3
;
// Version 3 does not have any glyph names.
post_prime
->
version
.
major
=
3
;
// Version 3 does not have any glyph names.
bool
result
=
plan
->
add_table
(
HB_OT_TAG_post
,
post_prime_blob
);
}
hb_blob_destroy
(
post_prime_blob
);
bool
subset
(
hb_subset_context_t
*
c
)
const
{
TRACE_SUBSET
(
this
);
post
*
post_prime
=
c
->
serializer
->
start_embed
<
post
>
();
if
(
unlikely
(
!
post_prime
))
return_trace
(
false
);
serialize
(
c
->
serializer
);
if
(
c
->
serializer
->
in_error
()
||
c
->
serializer
->
ran_out_of_room
)
return_trace
(
false
);
return
result
;
return
_trace
(
true
)
;
}
}
struct
accelerator_t
struct
accelerator_t
...
...
src/hb-subset.cc
浏览文件 @
93d592e0
...
@@ -193,7 +193,7 @@ _subset_table (hb_subset_plan_t *plan,
...
@@ -193,7 +193,7 @@ _subset_table (hb_subset_plan_t *plan,
result
=
_subset
<
const
OT
::
OS2
>
(
plan
);
result
=
_subset
<
const
OT
::
OS2
>
(
plan
);
break
;
break
;
case
HB_OT_TAG_post
:
case
HB_OT_TAG_post
:
result
=
_subset
<
const
OT
::
post
>
(
plan
);
result
=
_subset
2
<
const
OT
::
post
>
(
plan
);
break
;
break
;
#ifndef HB_NO_SUBSET_CFF
#ifndef HB_NO_SUBSET_CFF
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录