Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
fe9bc070
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看板
提交
fe9bc070
编写于
5月 10, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix awful confusion between lookup format and subtable format
As reported by John Daggett.
上级
458ecbb6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
14 deletion
+14
-14
src/hb-ot-layout-gpos-private.hh
src/hb-ot-layout-gpos-private.hh
+7
-7
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsub-private.hh
+7
-7
未找到文件。
src/hb-ot-layout-gpos-private.hh
浏览文件 @
fe9bc070
...
...
@@ -1458,10 +1458,10 @@ struct PosLookupSubTable
}
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
context
)
{
inline
bool
sanitize
(
hb_sanitize_context_t
*
context
,
unsigned
int
lookup_type
)
{
TRACE_SANITIZE
();
if
(
!
u
.
format
.
sanitize
(
context
))
return
false
;
switch
(
u
.
format
)
{
if
(
!
u
.
sub_
format
.
sanitize
(
context
))
return
false
;
switch
(
lookup_type
)
{
case
Single
:
return
u
.
single
.
sanitize
(
context
);
case
Pair
:
return
u
.
pair
.
sanitize
(
context
);
case
Cursive
:
return
u
.
cursive
.
sanitize
(
context
);
...
...
@@ -1477,7 +1477,7 @@ struct PosLookupSubTable
private:
union
{
USHORT
format
;
USHORT
sub_
format
;
SinglePos
single
;
PairPos
pair
;
CursivePos
cursive
;
...
...
@@ -1489,7 +1489,7 @@ struct PosLookupSubTable
ExtensionPos
extension
;
}
u
;
public:
DEFINE_SIZE_UNION
(
2
,
format
);
DEFINE_SIZE_UNION
(
2
,
sub_
format
);
};
...
...
@@ -1563,7 +1563,7 @@ struct PosLookup : Lookup
TRACE_SANITIZE
();
if
(
unlikely
(
!
Lookup
::
sanitize
(
context
)))
return
false
;
OffsetArrayOf
<
PosLookupSubTable
>
&
list
=
CastR
<
OffsetArrayOf
<
PosLookupSubTable
>
>
(
subTable
);
return
list
.
sanitize
(
context
,
this
);
return
list
.
sanitize
(
context
,
this
,
get_type
()
);
}
};
...
...
@@ -1611,7 +1611,7 @@ inline bool ExtensionPos::sanitize (hb_sanitize_context_t *context)
if
(
unlikely
(
!
Extension
::
sanitize
(
context
)))
return
false
;
unsigned
int
offset
=
get_offset
();
if
(
unlikely
(
!
offset
))
return
true
;
return
StructAtOffset
<
PosLookupSubTable
>
(
this
,
offset
).
sanitize
(
context
);
return
StructAtOffset
<
PosLookupSubTable
>
(
this
,
offset
).
sanitize
(
context
,
get_type
()
);
}
static
inline
bool
position_lookup
(
hb_apply_context_t
*
context
,
unsigned
int
lookup_index
)
...
...
src/hb-ot-layout-gsub-private.hh
浏览文件 @
fe9bc070
...
...
@@ -730,10 +730,10 @@ struct SubstLookupSubTable
}
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
context
)
{
inline
bool
sanitize
(
hb_sanitize_context_t
*
context
,
unsigned
int
lookup_type
)
{
TRACE_SANITIZE
();
if
(
!
u
.
format
.
sanitize
(
context
))
return
false
;
switch
(
u
.
format
)
{
if
(
!
u
.
sub_
format
.
sanitize
(
context
))
return
false
;
switch
(
lookup_type
)
{
case
Single
:
return
u
.
single
.
sanitize
(
context
);
case
Multiple
:
return
u
.
multiple
.
sanitize
(
context
);
case
Alternate
:
return
u
.
alternate
.
sanitize
(
context
);
...
...
@@ -748,7 +748,7 @@ struct SubstLookupSubTable
private:
union
{
USHORT
format
;
USHORT
sub_
format
;
SingleSubst
single
;
MultipleSubst
multiple
;
AlternateSubst
alternate
;
...
...
@@ -759,7 +759,7 @@ struct SubstLookupSubTable
ReverseChainSingleSubst
reverseChainContextSingle
;
}
u
;
public:
DEFINE_SIZE_UNION
(
2
,
format
);
DEFINE_SIZE_UNION
(
2
,
sub_
format
);
};
...
...
@@ -870,7 +870,7 @@ struct SubstLookup : Lookup
TRACE_SANITIZE
();
if
(
unlikely
(
!
Lookup
::
sanitize
(
context
)))
return
false
;
OffsetArrayOf
<
SubstLookupSubTable
>
&
list
=
CastR
<
OffsetArrayOf
<
SubstLookupSubTable
>
>
(
subTable
);
return
list
.
sanitize
(
context
,
this
);
return
list
.
sanitize
(
context
,
this
,
get_type
()
);
}
};
...
...
@@ -918,7 +918,7 @@ inline bool ExtensionSubst::sanitize (hb_sanitize_context_t *context)
if
(
unlikely
(
!
Extension
::
sanitize
(
context
)))
return
false
;
unsigned
int
offset
=
get_offset
();
if
(
unlikely
(
!
offset
))
return
true
;
return
StructAtOffset
<
SubstLookupSubTable
>
(
this
,
offset
).
sanitize
(
context
);
return
StructAtOffset
<
SubstLookupSubTable
>
(
this
,
offset
).
sanitize
(
context
,
get_type
()
);
}
inline
bool
ExtensionSubst
::
is_reverse
(
void
)
const
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录