Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
4c4e8f0e
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,发现更多精彩内容 >>
提交
4c4e8f0e
编写于
11月 24, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[OTLayout] Reuse apply context for recursion
上级
53a69f49
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
6 deletion
+16
-6
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+6
-1
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsub-table.hh
+6
-1
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+4
-4
未找到文件。
src/hb-ot-layout-gpos-table.hh
浏览文件 @
4c4e8f0e
...
...
@@ -1537,8 +1537,13 @@ inline bool PosLookup::apply_recurse_func (hb_apply_context_t *c, unsigned int l
{
const
GPOS
&
gpos
=
*
(
hb_ot_layout_from_face
(
c
->
face
)
->
gpos
);
const
PosLookup
&
l
=
gpos
.
get_lookup
(
lookup_index
);
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_property
=
c
->
property
;
c
->
set_lookup
(
l
);
return
l
.
apply_once
(
c
);
bool
ret
=
l
.
apply_once
(
c
);
c
->
lookup_props
=
saved_lookup_props
;
c
->
property
=
saved_property
;
return
ret
;
}
...
...
src/hb-ot-layout-gsub-table.hh
浏览文件 @
4c4e8f0e
...
...
@@ -1402,8 +1402,13 @@ inline bool SubstLookup::apply_recurse_func (hb_apply_context_t *c, unsigned int
{
const
GSUB
&
gsub
=
*
(
hb_ot_layout_from_face
(
c
->
face
)
->
gsub
);
const
SubstLookup
&
l
=
gsub
.
get_lookup
(
lookup_index
);
unsigned
int
saved_lookup_props
=
c
->
lookup_props
;
unsigned
int
saved_property
=
c
->
property
;
c
->
set_lookup
(
l
);
return
l
.
apply_once
(
c
);
bool
ret
=
l
.
apply_once
(
c
);
c
->
lookup_props
=
saved_lookup_props
;
c
->
property
=
saved_property
;
return
ret
;
}
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
4c4e8f0e
...
...
@@ -233,10 +233,10 @@ struct hb_apply_context_t
if
(
unlikely
(
nesting_level_left
==
0
||
!
recurse_func
))
return
default_return_value
();
/* TODO Reuse context. */
hb_apply_context_t
new_c
(
*
this
);
ne
w_c
.
nesting_level_left
--
;
return
recurse_func
(
&
new_c
,
lookup_index
);
nesting_level_left
--
;
recurse_func
(
this
,
lookup_index
);
ne
sting_level_left
++
;
return
default_return_value
(
);
}
hb_font_t
*
font
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录