Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2c8b3b2e
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,发现更多精彩内容 >>
提交
2c8b3b2e
编写于
8月 18, 2015
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[debug] Print lookup index in debug-apply output
上级
50ad7788
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
5 deletion
+15
-5
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+4
-1
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsub-table.hh
+4
-1
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+5
-2
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+2
-1
未找到文件。
src/hb-ot-layout-gpos-table.hh
浏览文件 @
2c8b3b2e
...
...
@@ -1568,8 +1568,11 @@ template <typename context_t>
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
;
c
->
set_lookup
(
l
);
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
c
->
set_lookup_index
(
lookup_index
);
c
->
set_lookup_props
(
l
.
get_props
());
bool
ret
=
l
.
dispatch
(
c
);
c
->
set_lookup_index
(
saved_lookup_index
);
c
->
set_lookup_props
(
saved_lookup_props
);
return
ret
;
}
...
...
src/hb-ot-layout-gsub-table.hh
浏览文件 @
2c8b3b2e
...
...
@@ -1311,8 +1311,11 @@ template <typename context_t>
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
;
c
->
set_lookup
(
l
);
unsigned
int
saved_lookup_index
=
c
->
lookup_index
;
c
->
set_lookup_index
(
lookup_index
);
c
->
set_lookup_props
(
l
.
get_props
());
bool
ret
=
l
.
dispatch
(
c
);
c
->
set_lookup_index
(
saved_lookup_index
);
c
->
set_lookup_props
(
saved_lookup_props
);
return
ret
;
}
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
2c8b3b2e
...
...
@@ -266,7 +266,8 @@ struct hb_add_coverage_context_t
#define TRACE_APPLY(this) \
hb_auto_trace_t<HB_DEBUG_APPLY, bool> trace \
(&c->debug_depth, c->get_name (), this, HB_FUNC, \
"idx %d codepoint %u", c->buffer->idx, c->buffer->cur().codepoint);
"idx %d gid %u lookup %d", \
c->buffer->idx, c->buffer->cur().codepoint, (int) c->lookup_index);
struct
hb_apply_context_t
{
...
...
@@ -481,6 +482,7 @@ struct hb_apply_context_t
const
GDEF
&
gdef
;
bool
has_glyph_classes
;
skipping_iterator_t
iter_input
,
iter_context
;
unsigned
int
lookup_index
;
unsigned
int
debug_depth
;
...
...
@@ -499,12 +501,13 @@ struct hb_apply_context_t
has_glyph_classes
(
gdef
.
has_glyph_classes
()),
iter_input
(),
iter_context
(),
lookup_index
((
unsigned
int
)
-
1
),
debug_depth
(
0
)
{}
inline
void
set_lookup_mask
(
hb_mask_t
mask
)
{
lookup_mask
=
mask
;
}
inline
void
set_auto_zwj
(
bool
auto_zwj_
)
{
auto_zwj
=
auto_zwj_
;
}
inline
void
set_recurse_func
(
recurse_func_t
func
)
{
recurse_func
=
func
;
}
inline
void
set_lookup
(
const
Lookup
&
l
)
{
set_lookup_props
(
l
.
get_props
())
;
}
inline
void
set_lookup
_index
(
unsigned
int
lookup_index_
)
{
lookup_index
=
lookup_index_
;
}
inline
void
set_lookup_props
(
unsigned
int
lookup_props_
)
{
lookup_props
=
lookup_props_
;
...
...
src/hb-ot-layout.cc
浏览文件 @
2c8b3b2e
...
...
@@ -959,7 +959,7 @@ apply_string (OT::hb_apply_context_t *c,
if
(
unlikely
(
!
buffer
->
len
||
!
c
->
lookup_mask
))
return
;
c
->
set_lookup
(
lookup
);
c
->
set_lookup
_props
(
lookup
.
get_props
()
);
if
(
likely
(
!
lookup
.
is_reverse
()))
{
...
...
@@ -1011,6 +1011,7 @@ inline void hb_ot_map_t::apply (const Proxy &proxy,
for
(;
i
<
stage
->
last_lookup
;
i
++
)
{
unsigned
int
lookup_index
=
lookups
[
table_index
][
i
].
index
;
c
.
set_lookup_index
(
lookup_index
);
c
.
set_lookup_mask
(
lookups
[
table_index
][
i
].
mask
);
c
.
set_auto_zwj
(
lookups
[
table_index
][
i
].
auto_zwj
);
apply_string
<
Proxy
>
(
&
c
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录