Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
8f0d7e0c
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看板
提交
8f0d7e0c
编写于
4月 15, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove hb_buffer_clear_positions(), add hb_ot_layout_position_start()
上级
2fc56edf
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
29 addition
and
18 deletion
+29
-18
src/hb-buffer-private.hh
src/hb-buffer-private.hh
+5
-1
src/hb-buffer.cc
src/hb-buffer.cc
+12
-12
src/hb-buffer.h
src/hb-buffer.h
+1
-4
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+6
-0
src/hb-ot-layout.h
src/hb-ot-layout.h
+4
-0
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+1
-1
未找到文件。
src/hb-buffer-private.hh
浏览文件 @
8f0d7e0c
...
...
@@ -51,6 +51,9 @@ _hb_buffer_swap (hb_buffer_t *buffer);
HB_INTERNAL
void
_hb_buffer_clear_output
(
hb_buffer_t
*
buffer
);
HB_INTERNAL
void
_hb_buffer_clear_positions
(
hb_buffer_t
*
buffer
);
HB_INTERNAL
void
_hb_buffer_replace_glyphs_be16
(
hb_buffer_t
*
buffer
,
unsigned
int
num_in
,
...
...
@@ -116,6 +119,7 @@ struct _hb_buffer_t {
inline
unsigned
int
next_serial
(
void
)
{
return
serial
++
;
}
inline
void
swap
(
void
)
{
_hb_buffer_swap
(
this
);
}
inline
void
clear_output
(
void
)
{
_hb_buffer_clear_output
(
this
);
}
inline
void
clear_positions
(
void
)
{
_hb_buffer_clear_positions
(
this
);
}
inline
void
next_glyph
(
void
)
{
_hb_buffer_next_glyph
(
this
);
}
inline
void
replace_glyphs_be16
(
unsigned
int
num_in
,
unsigned
int
num_out
,
...
...
src/hb-buffer.cc
浏览文件 @
8f0d7e0c
...
...
@@ -272,16 +272,6 @@ hb_buffer_add_glyph (hb_buffer_t *buffer,
buffer
->
len
++
;
}
void
hb_buffer_clear_positions
(
hb_buffer_t
*
buffer
)
{
_hb_buffer_clear_output
(
buffer
);
buffer
->
have_output
=
FALSE
;
buffer
->
have_positions
=
TRUE
;
memset
(
buffer
->
pos
,
0
,
sizeof
(
buffer
->
pos
[
0
])
*
buffer
->
len
);
}
/* HarfBuzz-Internal API */
void
...
...
@@ -289,10 +279,20 @@ _hb_buffer_clear_output (hb_buffer_t *buffer)
{
buffer
->
have_output
=
TRUE
;
buffer
->
have_positions
=
FALSE
;
buffer
->
out_len
=
0
;
buffer
->
out_info
=
buffer
->
info
;
}
void
_hb_buffer_clear_positions
(
hb_buffer_t
*
buffer
)
{
buffer
->
have_output
=
FALSE
;
buffer
->
have_positions
=
TRUE
;
memset
(
buffer
->
pos
,
0
,
sizeof
(
buffer
->
pos
[
0
])
*
buffer
->
len
);
}
void
_hb_buffer_swap
(
hb_buffer_t
*
buffer
)
{
...
...
@@ -477,7 +477,7 @@ hb_glyph_position_t *
hb_buffer_get_glyph_positions
(
hb_buffer_t
*
buffer
)
{
if
(
!
buffer
->
have_positions
)
hb_buffer_clear_positions
(
buffer
);
_
hb_buffer_clear_positions
(
buffer
);
return
(
hb_glyph_position_t
*
)
buffer
->
pos
;
}
...
...
src/hb-buffer.h
浏览文件 @
8f0d7e0c
...
...
@@ -102,9 +102,6 @@ hb_buffer_get_language (hb_buffer_t *buffer);
void
hb_buffer_reset
(
hb_buffer_t
*
buffer
);
void
hb_buffer_clear_positions
(
hb_buffer_t
*
buffer
);
hb_bool_t
hb_buffer_ensure
(
hb_buffer_t
*
buffer
,
unsigned
int
size
);
...
...
src/hb-ot-layout.cc
浏览文件 @
8f0d7e0c
...
...
@@ -462,6 +462,12 @@ hb_ot_layout_has_positioning (hb_face_t *face)
return
&
_get_gpos
(
face
)
!=
&
Null
(
GPOS
);
}
void
hb_ot_layout_position_start
(
hb_buffer_t
*
buffer
)
{
buffer
->
clear_positions
();
}
hb_bool_t
hb_ot_layout_position_lookup
(
hb_font_t
*
font
,
hb_face_t
*
face
,
...
...
src/hb-ot-layout.h
浏览文件 @
8f0d7e0c
...
...
@@ -179,6 +179,10 @@ hb_ot_layout_substitute_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_buffer_t
*
buffer
);
hb_bool_t
hb_ot_layout_position_lookup
(
hb_font_t
*
font
,
hb_face_t
*
face
,
...
...
src/hb-ot-shape.cc
浏览文件 @
8f0d7e0c
...
...
@@ -249,7 +249,7 @@ hb_substitute_complex_fallback (hb_ot_shape_context_t *c HB_UNUSED)
static
void
hb_position_default
(
hb_ot_shape_context_t
*
c
)
{
hb_
buffer_clear_positions
(
c
->
buffer
);
hb_
ot_layout_position_start
(
c
->
buffer
);
unsigned
int
count
=
c
->
buffer
->
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录