Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
6c42cddf
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
6c42cddf
编写于
5月 05, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Port apply to use hb_trace_t
上级
969c9705
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
19 deletion
+14
-19
src/hb-ot-layout-gpos-private.hh
src/hb-ot-layout-gpos-private.hh
+4
-5
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsub-private.hh
+5
-6
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+5
-8
未找到文件。
src/hb-ot-layout-gpos-private.hh
浏览文件 @
6c42cddf
...
@@ -1487,11 +1487,10 @@ struct PosLookup : Lookup
...
@@ -1487,11 +1487,10 @@ struct PosLookup : Lookup
inline
bool
apply_once
(
hb_ot_layout_context_t
*
layout
,
inline
bool
apply_once
(
hb_ot_layout_context_t
*
layout
,
hb_buffer_t
*
buffer
,
hb_buffer_t
*
buffer
,
unsigned
int
context_length
,
unsigned
int
context_length
,
unsigned
int
nesting_level_left
,
unsigned
int
nesting_level_left
)
const
unsigned
int
apply_depth
)
const
{
{
unsigned
int
lookup_type
=
get_type
();
unsigned
int
lookup_type
=
get_type
();
hb_apply_context_t
context
[
1
];
hb_apply_context_t
context
[
1
]
=
{{}}
;
context
->
layout
=
layout
;
context
->
layout
=
layout
;
context
->
buffer
=
buffer
;
context
->
buffer
=
buffer
;
...
@@ -1528,7 +1527,7 @@ struct PosLookup : Lookup
...
@@ -1528,7 +1527,7 @@ struct PosLookup : Lookup
bool
done
;
bool
done
;
if
(
~
IN_MASK
(
buffer
->
in_pos
)
&
mask
)
if
(
~
IN_MASK
(
buffer
->
in_pos
)
&
mask
)
{
{
done
=
apply_once
(
layout
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
,
0
);
done
=
apply_once
(
layout
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
);
ret
|=
done
;
ret
|=
done
;
}
}
else
else
...
@@ -1612,7 +1611,7 @@ static inline bool position_lookup (APPLY_ARG_DEF, unsigned int lookup_index)
...
@@ -1612,7 +1611,7 @@ static inline bool position_lookup (APPLY_ARG_DEF, unsigned int lookup_index)
if
(
unlikely
(
context
->
context_length
<
1
))
if
(
unlikely
(
context
->
context_length
<
1
))
return
false
;
return
false
;
return
l
.
apply_once
(
context
->
layout
,
context
->
buffer
,
context
->
context_length
,
context
->
nesting_level_left
-
1
,
apply_depth
+
1
);
return
l
.
apply_once
(
context
->
layout
,
context
->
buffer
,
context
->
context_length
,
context
->
nesting_level_left
-
1
);
}
}
...
...
src/hb-ot-layout-gsub-private.hh
浏览文件 @
6c42cddf
...
@@ -772,11 +772,10 @@ struct SubstLookup : Lookup
...
@@ -772,11 +772,10 @@ struct SubstLookup : Lookup
inline
bool
apply_once
(
hb_ot_layout_context_t
*
layout
,
inline
bool
apply_once
(
hb_ot_layout_context_t
*
layout
,
hb_buffer_t
*
buffer
,
hb_buffer_t
*
buffer
,
unsigned
int
context_length
,
unsigned
int
context_length
,
unsigned
int
nesting_level_left
,
unsigned
int
nesting_level_left
)
const
unsigned
int
apply_depth
)
const
{
{
unsigned
int
lookup_type
=
get_type
();
unsigned
int
lookup_type
=
get_type
();
hb_apply_context_t
context
[
1
];
hb_apply_context_t
context
[
1
]
=
{{}}
;
context
->
layout
=
layout
;
context
->
layout
=
layout
;
context
->
buffer
=
buffer
;
context
->
buffer
=
buffer
;
...
@@ -828,7 +827,7 @@ struct SubstLookup : Lookup
...
@@ -828,7 +827,7 @@ struct SubstLookup : Lookup
while
(
buffer
->
in_pos
<
buffer
->
in_length
)
while
(
buffer
->
in_pos
<
buffer
->
in_length
)
{
{
if
((
~
IN_MASK
(
buffer
->
in_pos
)
&
mask
)
&&
if
((
~
IN_MASK
(
buffer
->
in_pos
)
&
mask
)
&&
apply_once
(
layout
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
,
0
))
apply_once
(
layout
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
))
ret
=
true
;
ret
=
true
;
else
else
_hb_buffer_next_glyph
(
buffer
);
_hb_buffer_next_glyph
(
buffer
);
...
@@ -844,7 +843,7 @@ struct SubstLookup : Lookup
...
@@ -844,7 +843,7 @@ struct SubstLookup : Lookup
do
do
{
{
if
((
~
IN_MASK
(
buffer
->
in_pos
)
&
mask
)
&&
if
((
~
IN_MASK
(
buffer
->
in_pos
)
&
mask
)
&&
apply_once
(
layout
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
,
0
))
apply_once
(
layout
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
))
ret
=
true
;
ret
=
true
;
else
else
buffer
->
in_pos
--
;
buffer
->
in_pos
--
;
...
@@ -931,7 +930,7 @@ static inline bool substitute_lookup (APPLY_ARG_DEF, unsigned int lookup_index)
...
@@ -931,7 +930,7 @@ static inline bool substitute_lookup (APPLY_ARG_DEF, unsigned int lookup_index)
if
(
unlikely
(
context
->
context_length
<
1
))
if
(
unlikely
(
context
->
context_length
<
1
))
return
false
;
return
false
;
return
l
.
apply_once
(
context
->
layout
,
context
->
buffer
,
context
->
context_length
,
context
->
nesting_level_left
-
1
,
apply_depth
+
1
);
return
l
.
apply_once
(
context
->
layout
,
context
->
buffer
,
context
->
context_length
,
context
->
nesting_level_left
-
1
);
}
}
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
6c42cddf
...
@@ -36,18 +36,14 @@
...
@@ -36,18 +36,14 @@
#endif
#endif
#define TRACE_APPLY() \
#define TRACE_APPLY() \
HB_STMT_START { \
hb_trace_t<HB_DEBUG_APPLY> trace (&context->debug_depth); \
if (HB_DEBUG_APPLY) \
trace.log ("APPLY", HB_FUNC, this);
_hb_trace ("APPLY", HB_FUNC, this, apply_depth, HB_DEBUG_APPLY); \
} HB_STMT_END
#define APPLY_ARG_DEF \
#define APPLY_ARG_DEF \
hb_apply_context_t *context, \
hb_apply_context_t *context
unsigned int apply_depth HB_UNUSED
#define APPLY_ARG \
#define APPLY_ARG \
context, \
context
(HB_DEBUG_APPLY ? apply_depth + 1 : 0)
struct
hb_apply_context_t
struct
hb_apply_context_t
{
{
...
@@ -57,6 +53,7 @@ struct hb_apply_context_t
...
@@ -57,6 +53,7 @@ struct hb_apply_context_t
unsigned
int
nesting_level_left
;
unsigned
int
nesting_level_left
;
unsigned
int
lookup_flag
;
unsigned
int
lookup_flag
;
unsigned
int
property
;
/* propety of first glyph (TODO remove) */
unsigned
int
property
;
/* propety of first glyph (TODO remove) */
unsigned
int
debug_depth
;
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录