Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
b0e6a26a
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看板
提交
b0e6a26a
编写于
8月 02, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[OT] Hide some API
It was impossible to meaningfully use them from the outside these days.
上级
30524674
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
36 addition
and
66 deletion
+36
-66
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+32
-8
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+0
-20
src/hb-ot-layout.h
src/hb-ot-layout.h
+0
-34
src/hb-ot-map.cc
src/hb-ot-map.cc
+4
-4
未找到文件。
src/hb-ot-layout-private.hh
浏览文件 @
b0e6a26a
...
...
@@ -143,17 +143,41 @@ hb_ot_layout_would_substitute_lookup_fast (hb_face_t *face,
unsigned
int
glyphs_length
,
unsigned
int
lookup_index
);
/* Should be called before all the substitute_lookup's are done. */
HB_INTERNAL
void
hb_ot_layout_substitute_start
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
);
HB_INTERNAL
hb_bool_t
hb_ot_layout_substitute_lookup_fast
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
);
hb_ot_layout_substitute_lookup
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
);
/* Should be called after all the substitute_lookup's are done */
HB_INTERNAL
void
hb_ot_layout_substitute_finish
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
);
/* Should be called before all the position_lookup's are done. Resets positions to zero. */
HB_INTERNAL
void
hb_ot_layout_position_start
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
);
HB_INTERNAL
hb_bool_t
hb_ot_layout_position_lookup_fast
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
);
hb_ot_layout_position_lookup
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
);
/* Should be called after all the position_lookup's are done */
HB_INTERNAL
void
hb_ot_layout_position_finish
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
hb_bool_t
zero_width_attached_marks
);
/*
...
...
src/hb-ot-layout.cc
浏览文件 @
b0e6a26a
...
...
@@ -432,16 +432,6 @@ hb_ot_layout_substitute_lookup (hb_face_t *face,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
)
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
false
;
return
hb_ot_layout_substitute_lookup_fast
(
face
,
buffer
,
lookup_index
,
mask
);
}
hb_bool_t
hb_ot_layout_substitute_lookup_fast
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
)
{
if
(
unlikely
(
lookup_index
>=
hb_ot_layout_from_face
(
face
)
->
gsub_lookup_count
))
return
false
;
hb_apply_context_t
c
(
NULL
,
face
,
buffer
,
mask
,
&
hb_ot_layout_from_face
(
face
)
->
gsub_digests
[
lookup_index
]);
...
...
@@ -484,16 +474,6 @@ hb_ot_layout_position_lookup (hb_font_t *font,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
)
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
font
->
face
)))
return
false
;
return
hb_ot_layout_position_lookup_fast
(
font
,
buffer
,
lookup_index
,
mask
);
}
hb_bool_t
hb_ot_layout_position_lookup_fast
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
)
{
if
(
unlikely
(
lookup_index
>=
hb_ot_layout_from_face
(
font
->
face
)
->
gpos_lookup_count
))
return
false
;
hb_apply_context_t
c
(
font
,
font
->
face
,
buffer
,
mask
,
&
hb_ot_layout_from_face
(
font
->
face
)
->
gpos_digests
[
lookup_index
]);
...
...
src/hb-ot-layout.h
浏览文件 @
b0e6a26a
...
...
@@ -176,23 +176,6 @@ hb_ot_layout_would_substitute_lookup (hb_face_t *face,
unsigned
int
glyphs_length
,
unsigned
int
lookup_index
);
/* Should be called before all the substitute_lookup's are done. */
void
hb_ot_layout_substitute_start
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
);
hb_bool_t
hb_ot_layout_substitute_lookup
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
);
/* Should be called after all the substitute_lookup's are done */
void
hb_ot_layout_substitute_finish
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
);
void
hb_ot_layout_substitute_closure_lookup
(
hb_face_t
*
face
,
hb_set_t
*
glyphs
,
...
...
@@ -205,23 +188,6 @@ hb_ot_layout_substitute_closure_lookup (hb_face_t *face,
hb_bool_t
hb_ot_layout_has_positioning
(
hb_face_t
*
face
);
/* Should be called before all the position_lookup's are done. Resets positions to zero. */
void
hb_ot_layout_position_start
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
);
hb_bool_t
hb_ot_layout_position_lookup
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_mask_t
mask
);
/* Should be called after all the position_lookup's are done */
void
hb_ot_layout_position_finish
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
hb_bool_t
zero_width_attached_marks
);
HB_END_DECLS
...
...
src/hb-ot-map.cc
浏览文件 @
b0e6a26a
...
...
@@ -85,7 +85,7 @@ void hb_ot_map_t::substitute (hb_face_t *face, hb_buffer_t *buffer) const
for
(
unsigned
int
pause_index
=
0
;
pause_index
<
pauses
[
table_index
].
len
;
pause_index
++
)
{
const
pause_map_t
*
pause
=
&
pauses
[
table_index
][
pause_index
];
for
(;
i
<
pause
->
num_lookups
;
i
++
)
hb_ot_layout_substitute_lookup
_fast
(
face
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
hb_ot_layout_substitute_lookup
(
face
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
buffer
->
clear_output
();
...
...
@@ -94,7 +94,7 @@ void hb_ot_map_t::substitute (hb_face_t *face, hb_buffer_t *buffer) const
}
for
(;
i
<
lookups
[
table_index
].
len
;
i
++
)
hb_ot_layout_substitute_lookup
_fast
(
face
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
hb_ot_layout_substitute_lookup
(
face
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
}
void
hb_ot_map_t
::
position
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
const
...
...
@@ -105,14 +105,14 @@ void hb_ot_map_t::position (hb_font_t *font, hb_buffer_t *buffer) const
for
(
unsigned
int
pause_index
=
0
;
pause_index
<
pauses
[
table_index
].
len
;
pause_index
++
)
{
const
pause_map_t
*
pause
=
&
pauses
[
table_index
][
pause_index
];
for
(;
i
<
pause
->
num_lookups
;
i
++
)
hb_ot_layout_position_lookup
_fast
(
font
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
hb_ot_layout_position_lookup
(
font
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
if
(
pause
->
callback
.
func
)
pause
->
callback
.
func
(
this
,
font
,
buffer
,
pause
->
callback
.
user_data
);
}
for
(;
i
<
lookups
[
table_index
].
len
;
i
++
)
hb_ot_layout_position_lookup
_fast
(
font
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
hb_ot_layout_position_lookup
(
font
,
buffer
,
lookups
[
table_index
][
i
].
index
,
lookups
[
table_index
][
i
].
mask
);
}
void
hb_ot_map_t
::
substitute_closure
(
hb_face_t
*
face
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录