Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
33b006cc
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看板
提交
33b006cc
编写于
11月 05, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ot-layout] Simplify some access
上级
db35409f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
21 deletion
+13
-21
src/hb-ot-layout-gdef-table.hh
src/hb-ot-layout-gdef-table.hh
+1
-1
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+5
-4
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsub-table.hh
+5
-4
src/hb-ot-layout-gsubgpos.hh
src/hb-ot-layout-gsubgpos.hh
+1
-1
src/hb-ot-layout.hh
src/hb-ot-layout.hh
+1
-11
未找到文件。
src/hb-ot-layout-gdef-table.hh
浏览文件 @
33b006cc
...
...
@@ -410,7 +410,7 @@ struct GDEF
struct
accelerator_t
{
HB_INTERNAL
inline
void
init
(
hb_face_t
*
face
);
HB_INTERNAL
void
init
(
hb_face_t
*
face
);
inline
void
fini
(
void
)
{
...
...
src/hb-ot-layout-gpos-table.hh
浏览文件 @
33b006cc
...
...
@@ -1736,18 +1736,21 @@ GPOS::position_finish_offsets (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
}
struct
GPOS_accelerator_t
:
GPOS
::
accelerator_t
{};
/* Out-of-class implementation for methods recursing */
template
<
typename
context_t
>
/*static*/
inline
typename
context_t
::
return_t
PosLookup
::
dispatch_recurse_func
(
context_t
*
c
,
unsigned
int
lookup_index
)
{
const
PosLookup
&
l
=
_get_gpos_relaxed
(
c
->
face
)
->
get_lookup
(
lookup_index
);
const
PosLookup
&
l
=
c
->
face
->
table
.
GPOS
.
get_relaxed
()
->
table
->
get_lookup
(
lookup_index
);
return
l
.
dispatch
(
c
);
}
/*static*/
inline
bool
PosLookup
::
apply_recurse_func
(
hb_ot_apply_context_t
*
c
,
unsigned
int
lookup_index
)
{
const
PosLookup
&
l
=
_get_gpos_relaxed
(
c
->
face
).
get_lookup
(
lookup_index
);
const
PosLookup
&
l
=
c
->
face
->
table
.
GPOS
.
get_relaxed
()
->
table
->
get_lookup
(
lookup_index
);
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
c
->
set_lookup_index
(
lookup_index
);
...
...
@@ -1758,8 +1761,6 @@ template <typename context_t>
return
ret
;
}
struct
GPOS_accelerator_t
:
GPOS
::
accelerator_t
{};
}
/* namespace OT */
...
...
src/hb-ot-layout-gsub-table.hh
浏览文件 @
33b006cc
...
...
@@ -1487,6 +1487,9 @@ struct GSUB : GSUBGPOS
};
struct
GSUB_accelerator_t
:
GSUB
::
accelerator_t
{};
/* Out-of-class implementation for methods recursing */
/*static*/
inline
bool
ExtensionSubst
::
is_reverse
(
void
)
const
...
...
@@ -1500,13 +1503,13 @@ struct GSUB : GSUBGPOS
template
<
typename
context_t
>
/*static*/
inline
typename
context_t
::
return_t
SubstLookup
::
dispatch_recurse_func
(
context_t
*
c
,
unsigned
int
lookup_index
)
{
const
SubstLookup
&
l
=
_get_gsub_relaxed
(
c
->
face
).
get_lookup
(
lookup_index
);
const
SubstLookup
&
l
=
c
->
face
->
table
.
GSUB
.
get_relaxed
()
->
table
->
get_lookup
(
lookup_index
);
return
l
.
dispatch
(
c
);
}
/*static*/
inline
bool
SubstLookup
::
apply_recurse_func
(
hb_ot_apply_context_t
*
c
,
unsigned
int
lookup_index
)
{
const
SubstLookup
&
l
=
_get_gsub_relaxed
(
c
->
face
).
get_lookup
(
lookup_index
);
const
SubstLookup
&
l
=
c
->
face
->
table
.
GSUB
.
get_relaxed
()
->
table
->
get_lookup
(
lookup_index
);
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
c
->
set_lookup_index
(
lookup_index
);
...
...
@@ -1517,8 +1520,6 @@ template <typename context_t>
return
ret
;
}
struct
GSUB_accelerator_t
:
GSUB
::
accelerator_t
{};
}
/* namespace OT */
...
...
src/hb-ot-layout-gsubgpos.hh
浏览文件 @
33b006cc
...
...
@@ -491,7 +491,7 @@ struct hb_ot_apply_context_t :
iter_input
(),
iter_context
(),
font
(
font_
),
face
(
font
->
face
),
buffer
(
buffer_
),
recurse_func
(
nullptr
),
gdef
(
_get_gdef
(
face
)
),
gdef
(
*
face
->
table
.
GDEF
->
table
),
var_store
(
gdef
.
get_var_store
()),
direction
(
buffer_
->
props
.
direction
),
lookup_mask
(
1
),
...
...
src/hb-ot-layout.hh
浏览文件 @
33b006cc
...
...
@@ -38,19 +38,9 @@
#include "hb-set-digest.hh"
namespace
OT
{
struct
GDEF
;
struct
GSUB
;
struct
GPOS
;
}
HB_INTERNAL
const
OT
::
GDEF
&
_get_gdef
(
hb_face_t
*
face
);
HB_INTERNAL
const
OT
::
GSUB
&
_get_gsub_relaxed
(
hb_face_t
*
face
);
HB_INTERNAL
const
OT
::
GPOS
&
_get_gpos_relaxed
(
hb_face_t
*
face
);
struct
hb_ot_shape_plan_t
;
/*
* kern
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录