Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
6fa690c7
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
6fa690c7
编写于
2月 18, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix debug build
Context needs to be called 'c'. The TRACE_* rely on that.
上级
05d1e77d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
11 deletion
+11
-11
src/hb-ot-cmap-table.hh
src/hb-ot-cmap-table.hh
+11
-11
未找到文件。
src/hb-ot-cmap-table.hh
浏览文件 @
6fa690c7
...
@@ -271,13 +271,13 @@ struct CmapSubtableLongSegmented
...
@@ -271,13 +271,13 @@ struct CmapSubtableLongSegmented
return_trace
(
c
->
check_struct
(
this
)
&&
groups
.
sanitize
(
c
));
return_trace
(
c
->
check_struct
(
this
)
&&
groups
.
sanitize
(
c
));
}
}
inline
bool
serialize
(
hb_serialize_context_t
*
c
ontext
,
inline
bool
serialize
(
hb_serialize_context_t
*
c
,
hb_prealloced_array_t
<
CmapSubtableLongGroup
>
&
group_data
)
hb_prealloced_array_t
<
CmapSubtableLongGroup
>
&
group_data
)
{
{
TRACE_SERIALIZE
(
this
);
TRACE_SERIALIZE
(
this
);
if
(
unlikely
(
!
c
ontext
->
extend_min
(
*
this
)))
return_trace
(
false
);
if
(
unlikely
(
!
c
->
extend_min
(
*
this
)))
return_trace
(
false
);
Supplier
<
CmapSubtableLongGroup
>
supplier
(
group_data
.
array
,
group_data
.
len
);
Supplier
<
CmapSubtableLongGroup
>
supplier
(
group_data
.
array
,
group_data
.
len
);
if
(
unlikely
(
!
groups
.
serialize
(
c
ontext
,
supplier
,
group_data
.
len
)))
return_trace
(
false
);
if
(
unlikely
(
!
groups
.
serialize
(
c
,
supplier
,
group_data
.
len
)))
return_trace
(
false
);
return
true
;
return
true
;
}
}
...
@@ -555,37 +555,37 @@ struct cmap
...
@@ -555,37 +555,37 @@ struct cmap
size_t
dest_sz
,
size_t
dest_sz
,
void
*
dest
)
const
void
*
dest
)
const
{
{
hb_serialize_context_t
c
ontext
(
dest
,
dest_sz
);
hb_serialize_context_t
c
(
dest
,
dest_sz
);
OT
::
cmap
*
cmap
=
c
ontext
.
start_serialize
<
OT
::
cmap
>
();
OT
::
cmap
*
cmap
=
c
.
start_serialize
<
OT
::
cmap
>
();
if
(
unlikely
(
!
c
ontext
.
extend_min
(
*
cmap
)))
if
(
unlikely
(
!
c
.
extend_min
(
*
cmap
)))
{
{
return
false
;
return
false
;
}
}
cmap
->
version
.
set
(
0
);
cmap
->
version
.
set
(
0
);
if
(
unlikely
(
!
cmap
->
encodingRecord
.
serialize
(
&
c
ontext
,
/* numTables */
1
)))
return
false
;
if
(
unlikely
(
!
cmap
->
encodingRecord
.
serialize
(
&
c
,
/* numTables */
1
)))
return
false
;
EncodingRecord
&
rec
=
cmap
->
encodingRecord
[
0
];
EncodingRecord
&
rec
=
cmap
->
encodingRecord
[
0
];
rec
.
platformID
.
set
(
3
);
// Windows
rec
.
platformID
.
set
(
3
);
// Windows
rec
.
encodingID
.
set
(
10
);
// Unicode UCS-4
rec
.
encodingID
.
set
(
10
);
// Unicode UCS-4
/* capture offset to subtable */
/* capture offset to subtable */
CmapSubtable
&
subtable
=
rec
.
subtable
.
serialize
(
&
c
ontext
,
cmap
);
CmapSubtable
&
subtable
=
rec
.
subtable
.
serialize
(
&
c
,
cmap
);
subtable
.
u
.
format
.
set
(
12
);
subtable
.
u
.
format
.
set
(
12
);
CmapSubtableFormat12
&
format12
=
subtable
.
u
.
format12
;
CmapSubtableFormat12
&
format12
=
subtable
.
u
.
format12
;
if
(
unlikely
(
!
c
ontext
.
extend_min
(
format12
)))
return
false
;
if
(
unlikely
(
!
c
.
extend_min
(
format12
)))
return
false
;
format12
.
format
.
set
(
12
);
format12
.
format
.
set
(
12
);
format12
.
reservedZ
.
set
(
0
);
format12
.
reservedZ
.
set
(
0
);
format12
.
lengthZ
.
set
(
16
+
12
*
groups
.
len
);
format12
.
lengthZ
.
set
(
16
+
12
*
groups
.
len
);
if
(
unlikely
(
!
format12
.
serialize
(
&
c
ontext
,
groups
)))
return
false
;
if
(
unlikely
(
!
format12
.
serialize
(
&
c
,
groups
)))
return
false
;
c
ontext
.
end_serialize
();
c
.
end_serialize
();
return
true
;
return
true
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录