Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2a4cdfad
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
2a4cdfad
编写于
4月 20, 2018
作者:
E
Ebrahim Byagowi
提交者:
GitHub
4月 20, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[aat/kerx] Minor (#1003)
上级
ce17340b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
22 deletion
+24
-22
src/hb-aat-layout-kerx-table.hh
src/hb-aat-layout-kerx-table.hh
+24
-22
未找到文件。
src/hb-aat-layout-kerx-table.hh
浏览文件 @
2a4cdfad
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include "hb-open-type-private.hh"
#include "hb-open-type-private.hh"
#include "hb-aat-layout-common-private.hh"
#include "hb-aat-layout-common-private.hh"
#include "hb-aat-layout-ankr-table.hh"
/*
/*
* kerx -- Extended Kerning
* kerx -- Extended Kerning
...
@@ -48,7 +49,7 @@ struct KerxFormat0Records
...
@@ -48,7 +49,7 @@ struct KerxFormat0Records
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
));
return_trace
(
likely
(
c
->
check_struct
(
this
)
));
}
}
protected:
protected:
...
@@ -74,8 +75,8 @@ struct KerxSubTableFormat0
...
@@ -74,8 +75,8 @@ struct KerxSubTableFormat0
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
recordsZ
.
sanitize
(
c
,
nPairs
));
recordsZ
.
sanitize
(
c
,
nPairs
)
));
}
}
protected:
protected:
...
@@ -98,8 +99,8 @@ struct KerxSubTableFormat1
...
@@ -98,8 +99,8 @@ struct KerxSubTableFormat1
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
stateHeader
.
sanitize
(
c
));
stateHeader
.
sanitize
(
c
)
));
}
}
protected:
protected:
...
@@ -117,7 +118,8 @@ struct KerxClassTable
...
@@ -117,7 +118,8 @@ struct KerxClassTable
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
firstGlyph
.
sanitize
(
c
)
&&
classes
.
sanitize
(
c
));
return_trace
(
likely
(
firstGlyph
.
sanitize
(
c
)
&&
classes
.
sanitize
(
c
)));
}
}
protected:
protected:
...
@@ -146,11 +148,11 @@ struct KerxSubTableFormat2
...
@@ -146,11 +148,11 @@ struct KerxSubTableFormat2
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
rowWidth
.
sanitize
(
c
)
&&
rowWidth
.
sanitize
(
c
)
&&
leftClassTable
.
sanitize
(
c
,
this
)
&&
leftClassTable
.
sanitize
(
c
,
this
)
&&
rightClassTable
.
sanitize
(
c
,
this
)
&&
rightClassTable
.
sanitize
(
c
,
this
)
&&
array
.
sanitize
(
c
,
this
));
array
.
sanitize
(
c
,
this
)
));
}
}
protected:
protected:
...
@@ -173,11 +175,11 @@ struct KerxSubTableFormat4
...
@@ -173,11 +175,11 @@ struct KerxSubTableFormat4
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
rowWidth
.
sanitize
(
c
)
&&
rowWidth
.
sanitize
(
c
)
&&
leftClassTable
.
sanitize
(
c
,
this
)
&&
leftClassTable
.
sanitize
(
c
,
this
)
&&
rightClassTable
.
sanitize
(
c
,
this
)
&&
rightClassTable
.
sanitize
(
c
,
this
)
&&
array
.
sanitize
(
c
,
this
));
array
.
sanitize
(
c
,
this
)
));
}
}
protected:
protected:
...
@@ -200,11 +202,11 @@ struct KerxSubTableFormat6
...
@@ -200,11 +202,11 @@ struct KerxSubTableFormat6
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
rowIndexTable
.
sanitize
(
c
,
this
)
&&
rowIndexTable
.
sanitize
(
c
,
this
)
&&
columnIndexTable
.
sanitize
(
c
,
this
)
&&
columnIndexTable
.
sanitize
(
c
,
this
)
&&
kerningArray
.
sanitize
(
c
,
this
)
&&
kerningArray
.
sanitize
(
c
,
this
)
&&
kerningVector
.
sanitize
(
c
,
this
));
kerningVector
.
sanitize
(
c
,
this
)
));
}
}
protected:
protected:
...
@@ -276,7 +278,7 @@ struct SubtableGlyphCoverageArray
...
@@ -276,7 +278,7 @@ struct SubtableGlyphCoverageArray
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
{
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
));
return_trace
(
likely
(
c
->
check_struct
(
this
)
));
}
}
protected:
protected:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录