Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
362a990b
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看板
提交
362a990b
编写于
11月 15, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename hb_ot_layout_would_substitute_lookup() and hb_ot_layout_substitute_closure_lookup()
To match upcoming API.
上级
a4bef84e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
10 deletion
+10
-10
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+1
-1
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+4
-4
src/hb-ot-layout.h
src/hb-ot-layout.h
+2
-2
src/hb-ot-map.cc
src/hb-ot-map.cc
+1
-1
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+1
-1
src/test-would-substitute.cc
src/test-would-substitute.cc
+1
-1
未找到文件。
src/hb-ot-layout-private.hh
浏览文件 @
362a990b
...
...
@@ -138,7 +138,7 @@ static inline uint8_t allocate_lig_id (hb_buffer_t *buffer) {
HB_INTERNAL
hb_bool_t
hb_ot_layout_
would_substitute_lookup
_fast
(
hb_face_t
*
face
,
hb_ot_layout_
lookup_would_substitute
_fast
(
hb_face_t
*
face
,
unsigned
int
lookup_index
,
const
hb_codepoint_t
*
glyphs
,
unsigned
int
glyphs_length
,
...
...
src/hb-ot-layout.cc
浏览文件 @
362a990b
...
...
@@ -399,18 +399,18 @@ hb_ot_layout_has_substitution (hb_face_t *face)
}
hb_bool_t
hb_ot_layout_
would_substitute_lookup
(
hb_face_t
*
face
,
hb_ot_layout_
lookup_would_substitute
(
hb_face_t
*
face
,
unsigned
int
lookup_index
,
const
hb_codepoint_t
*
glyphs
,
unsigned
int
glyphs_length
,
hb_bool_t
zero_context
)
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
false
;
return
hb_ot_layout_
would_substitute_lookup
_fast
(
face
,
lookup_index
,
glyphs
,
glyphs_length
,
zero_context
);
return
hb_ot_layout_
lookup_would_substitute
_fast
(
face
,
lookup_index
,
glyphs
,
glyphs_length
,
zero_context
);
}
hb_bool_t
hb_ot_layout_
would_substitute_lookup
_fast
(
hb_face_t
*
face
,
hb_ot_layout_
lookup_would_substitute
_fast
(
hb_face_t
*
face
,
unsigned
int
lookup_index
,
const
hb_codepoint_t
*
glyphs
,
unsigned
int
glyphs_length
,
...
...
@@ -452,7 +452,7 @@ hb_ot_layout_substitute_finish (hb_font_t *font, hb_buffer_t *buffer)
}
void
hb_ot_layout_
substitute_closure_lookup
(
hb_face_t
*
face
,
hb_ot_layout_
lookup_substitute_closure
(
hb_face_t
*
face
,
unsigned
int
lookup_index
,
hb_set_t
*
glyphs
)
{
...
...
src/hb-ot-layout.h
浏览文件 @
362a990b
...
...
@@ -170,14 +170,14 @@ hb_bool_t
hb_ot_layout_has_substitution
(
hb_face_t
*
face
);
hb_bool_t
hb_ot_layout_
would_substitute_lookup
(
hb_face_t
*
face
,
hb_ot_layout_
lookup_would_substitute
(
hb_face_t
*
face
,
unsigned
int
lookup_index
,
const
hb_codepoint_t
*
glyphs
,
unsigned
int
glyphs_length
,
hb_bool_t
zero_context
);
void
hb_ot_layout_
substitute_closure_lookup
(
hb_face_t
*
face
,
hb_ot_layout_
lookup_substitute_closure
(
hb_face_t
*
face
,
unsigned
int
lookup_index
,
hb_set_t
*
glyphs
);
...
...
src/hb-ot-map.cc
浏览文件 @
362a990b
...
...
@@ -142,7 +142,7 @@ void hb_ot_map_t::substitute_closure (const hb_ot_shape_plan_t *plan, hb_face_t
{
unsigned
int
table_index
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
lookups
[
table_index
].
len
;
i
++
)
hb_ot_layout_
substitute_closure_lookup
(
face
,
lookups
[
table_index
][
i
].
index
,
glyphs
);
hb_ot_layout_
lookup_substitute_closure
(
face
,
lookups
[
table_index
][
i
].
index
,
glyphs
);
}
void
hb_ot_map_builder_t
::
add_pause
(
unsigned
int
table_index
,
hb_ot_map_t
::
pause_func_t
pause_func
)
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
362a990b
...
...
@@ -269,7 +269,7 @@ struct would_substitute_feature_t
hb_face_t
*
face
)
const
{
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
if
(
hb_ot_layout_
would_substitute_lookup
_fast
(
face
,
lookups
[
i
].
index
,
glyphs
,
glyphs_count
,
zero_context
))
if
(
hb_ot_layout_
lookup_would_substitute
_fast
(
face
,
lookups
[
i
].
index
,
glyphs
,
glyphs_count
,
zero_context
))
return
true
;
return
false
;
}
...
...
src/test-would-substitute.cc
浏览文件 @
362a990b
...
...
@@ -99,5 +99,5 @@ main (int argc, char **argv)
(
argc
>
4
&&
!
hb_font_glyph_from_string
(
font
,
argv
[
4
],
-
1
,
&
glyphs
[
1
])))
return
2
;
return
!
hb_ot_layout_
would_substitute_lookup
(
face
,
strtol
(
argv
[
2
],
NULL
,
0
),
glyphs
,
len
,
false
);
return
!
hb_ot_layout_
lookup_would_substitute
(
face
,
strtol
(
argv
[
2
],
NULL
,
0
),
glyphs
,
len
,
false
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录