Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
f5e0a63a
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看板
提交
f5e0a63a
编写于
11月 07, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[kern/kerx] Towards sharing KernTable
上级
33050849
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
14 deletion
+9
-14
src/hb-aat-layout-kerx-table.hh
src/hb-aat-layout-kerx-table.hh
+2
-2
src/hb-ot-kern-table.hh
src/hb-ot-kern-table.hh
+7
-12
未找到文件。
src/hb-aat-layout-kerx-table.hh
浏览文件 @
f5e0a63a
...
...
@@ -769,6 +769,7 @@ struct KerxSubTableHeader
typedef
ExtendedTypes
Types
;
inline
unsigned
int
tuple_count
(
void
)
const
{
return
tupleCount
;
}
inline
bool
is_horizontal
(
void
)
const
{
return
!
(
coverage
&
Vertical
);
}
enum
Coverage
{
...
...
@@ -863,8 +864,7 @@ struct kerx
{
bool
reverse
;
if
(
HB_DIRECTION_IS_VERTICAL
(
c
->
buffer
->
props
.
direction
)
!=
bool
(
st
->
u
.
header
.
coverage
&
st
->
u
.
header
.
Vertical
))
if
(
HB_DIRECTION_IS_HORIZONTAL
(
c
->
buffer
->
props
.
direction
)
!=
st
->
u
.
header
.
is_horizontal
())
goto
skip
;
reverse
=
bool
(
st
->
u
.
header
.
coverage
&
st
->
u
.
header
.
Backwards
)
!=
...
...
src/hb-ot-kern-table.hh
浏览文件 @
f5e0a63a
...
...
@@ -173,9 +173,8 @@ struct KernTable
unsigned
int
count
=
thiz
()
->
nTables
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
{
if
((
st
->
u
.
header
.
coverage
&
(
st
->
u
.
header
.
Variation
|
st
->
u
.
header
.
CrossStream
|
st
->
u
.
header
.
Direction
))
!=
st
->
u
.
header
.
DirectionHorizontal
)
if
((
st
->
u
.
header
.
coverage
&
(
st
->
u
.
header
.
Variation
|
st
->
u
.
header
.
CrossStream
))
||
!
st
->
u
.
header
.
is_horizontal
())
continue
;
v
+=
st
->
get_kerning
(
left
,
right
);
st
=
&
StructAfter
<
SubTable
>
(
*
st
);
...
...
@@ -196,8 +195,7 @@ struct KernTable
if
(
st
->
u
.
header
.
coverage
&
st
->
u
.
header
.
Variation
)
goto
skip
;
if
(
HB_DIRECTION_IS_HORIZONTAL
(
c
->
buffer
->
props
.
direction
)
!=
((
st
->
u
.
header
.
coverage
&
st
->
u
.
header
.
Direction
)
==
st
->
u
.
header
.
DirectionHorizontal
))
if
(
HB_DIRECTION_IS_HORIZONTAL
(
c
->
buffer
->
props
.
direction
)
!=
st
->
u
.
header
.
is_horizontal
())
goto
skip
;
if
(
!
c
->
buffer
->
message
(
c
->
font
,
"start kern subtable %d"
,
c
->
lookup_index
))
...
...
@@ -248,18 +246,16 @@ struct KernOT : KernTable<KernOT>
typedef
AAT
::
ObsoleteTypes
Types
;
inline
unsigned
int
tuple_count
(
void
)
const
{
return
0
;
}
inline
bool
is_horizontal
(
void
)
const
{
return
(
coverage
&
Horizontal
);
}
enum
Coverage
{
Direction
=
0x01u
,
Horizontal
=
0x01u
,
Minimum
=
0x02u
,
CrossStream
=
0x04u
,
Override
=
0x08u
,
Variation
=
0x00u
,
/* Not supported. */
DirectionHorizontal
=
0x01u
};
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
...
...
@@ -296,14 +292,13 @@ struct KernAAT : KernTable<KernAAT>
typedef
AAT
::
ObsoleteTypes
Types
;
inline
unsigned
int
tuple_count
(
void
)
const
{
return
0
;
}
inline
bool
is_horizontal
(
void
)
const
{
return
!
(
coverage
&
Vertical
);
}
enum
Coverage
{
Direction
=
0x80u
,
Vertical
=
0x80u
,
CrossStream
=
0x40u
,
Variation
=
0x20u
,
DirectionHorizontal
=
0x00u
};
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录