Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
97e5913d
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看板
提交
97e5913d
编写于
10月 10, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move more code
上级
c8f2d933
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
25 deletion
+26
-25
src/hb-ot-layout-gsubgpos.hh
src/hb-ot-layout-gsubgpos.hh
+17
-0
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+6
-6
src/hb-ot-layout.hh
src/hb-ot-layout.hh
+2
-18
src/hb-ot-shape-complex-arabic-fallback.hh
src/hb-ot-shape-complex-arabic-fallback.hh
+1
-1
未找到文件。
src/hb-ot-layout-gsubgpos.hh
浏览文件 @
97e5913d
...
...
@@ -2612,6 +2612,23 @@ struct Extension
* GSUB/GPOS Common
*/
struct
hb_ot_layout_lookup_accelerator_t
{
template
<
typename
TLookup
>
inline
void
init
(
const
TLookup
&
lookup
)
{
digest
.
init
();
lookup
.
add_coverage
(
&
digest
);
}
inline
void
fini
(
void
)
{}
inline
bool
may_have
(
hb_codepoint_t
g
)
const
{
return
digest
.
may_have
(
g
);
}
private:
hb_set_digest_t
digest
;
};
struct
GSUBGPOS
{
inline
bool
has_data
(
void
)
const
{
return
version
.
to_int
()
!=
0
;
}
...
...
src/hb-ot-layout.cc
浏览文件 @
97e5913d
...
...
@@ -1094,7 +1094,7 @@ struct GSUBProxy
accels
(
hb_ot_face_data
(
face
)
->
GSUB
->
accels
)
{}
const
OT
::
GSUB
&
table
;
const
hb_ot_layout_lookup_accelerator_t
*
accels
;
const
OT
::
hb_ot_layout_lookup_accelerator_t
*
accels
;
};
struct
GPOSProxy
...
...
@@ -1108,13 +1108,13 @@ struct GPOSProxy
accels
(
hb_ot_face_data
(
face
)
->
GPOS
->
accels
)
{}
const
OT
::
GPOS
&
table
;
const
hb_ot_layout_lookup_accelerator_t
*
accels
;
const
OT
::
hb_ot_layout_lookup_accelerator_t
*
accels
;
};
static
inline
bool
apply_forward
(
OT
::
hb_ot_apply_context_t
*
c
,
const
hb_ot_layout_lookup_accelerator_t
&
accel
,
const
OT
::
hb_ot_layout_lookup_accelerator_t
&
accel
,
const
OT
::
hb_get_subtables_context_t
::
array_t
&
subtables
)
{
bool
ret
=
false
;
...
...
@@ -1144,7 +1144,7 @@ apply_forward (OT::hb_ot_apply_context_t *c,
static
inline
bool
apply_backward
(
OT
::
hb_ot_apply_context_t
*
c
,
const
hb_ot_layout_lookup_accelerator_t
&
accel
,
const
OT
::
hb_ot_layout_lookup_accelerator_t
&
accel
,
const
OT
::
hb_get_subtables_context_t
::
array_t
&
subtables
)
{
bool
ret
=
false
;
...
...
@@ -1174,7 +1174,7 @@ template <typename Proxy>
static
inline
void
apply_string
(
OT
::
hb_ot_apply_context_t
*
c
,
const
typename
Proxy
::
Lookup
&
lookup
,
const
hb_ot_layout_lookup_accelerator_t
&
accel
)
const
OT
::
hb_ot_layout_lookup_accelerator_t
&
accel
)
{
hb_buffer_t
*
buffer
=
c
->
buffer
;
...
...
@@ -1270,7 +1270,7 @@ void hb_ot_map_t::position (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_
void
hb_ot_layout_substitute_lookup
(
OT
::
hb_ot_apply_context_t
*
c
,
const
OT
::
SubstLookup
&
lookup
,
const
hb_ot_layout_lookup_accelerator_t
&
accel
)
const
OT
::
hb_ot_layout_lookup_accelerator_t
&
accel
)
{
apply_string
<
GSUBProxy
>
(
c
,
lookup
,
accel
);
}
src/hb-ot-layout.hh
浏览文件 @
97e5913d
...
...
@@ -112,32 +112,16 @@ hb_ot_layout_substitute_start (hb_font_t *font,
hb_buffer_t
*
buffer
);
struct
hb_ot_layout_lookup_accelerator_t
{
template
<
typename
TLookup
>
inline
void
init
(
const
TLookup
&
lookup
)
{
digest
.
init
();
lookup
.
add_coverage
(
&
digest
);
}
inline
void
fini
(
void
)
{}
inline
bool
may_have
(
hb_codepoint_t
g
)
const
{
return
digest
.
may_have
(
g
);
}
private:
hb_set_digest_t
digest
;
};
namespace
OT
{
struct
hb_ot_apply_context_t
;
struct
SubstLookup
;
struct
hb_ot_layout_lookup_accelerator_t
;
}
HB_INTERNAL
void
hb_ot_layout_substitute_lookup
(
OT
::
hb_ot_apply_context_t
*
c
,
const
OT
::
SubstLookup
&
lookup
,
const
hb_ot_layout_lookup_accelerator_t
&
accel
);
const
OT
::
hb_ot_layout_lookup_accelerator_t
&
accel
);
/* Should be called before all the position_lookup's are done. */
...
...
src/hb-ot-shape-complex-arabic-fallback.hh
浏览文件 @
97e5913d
...
...
@@ -201,7 +201,7 @@ struct arabic_fallback_plan_t
hb_mask_t
mask_array
[
ARABIC_FALLBACK_MAX_LOOKUPS
];
OT
::
SubstLookup
*
lookup_array
[
ARABIC_FALLBACK_MAX_LOOKUPS
];
hb_ot_layout_lookup_accelerator_t
accel_array
[
ARABIC_FALLBACK_MAX_LOOKUPS
];
OT
::
hb_ot_layout_lookup_accelerator_t
accel_array
[
ARABIC_FALLBACK_MAX_LOOKUPS
];
};
#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(HB_NO_WIN1256)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录