Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
9111b21e
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,发现更多精彩内容 >>
提交
9111b21e
编写于
7月 21, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add _hb_buffer_output_glyph() and _hb_buffer_skip_glyph()
上级
655586fe
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
4 deletion
+27
-4
src/hb-buffer-private.hh
src/hb-buffer-private.hh
+10
-0
src/hb-buffer.cc
src/hb-buffer.cc
+16
-3
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+1
-1
未找到文件。
src/hb-buffer-private.hh
浏览文件 @
9111b21e
...
...
@@ -65,6 +65,13 @@ HB_INTERNAL void
_hb_buffer_replace_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
);
HB_INTERNAL
void
_hb_buffer_output_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
);
HB_INTERNAL
void
_hb_buffer_skip_glyph
(
hb_buffer_t
*
buffer
);
HB_INTERNAL
void
_hb_buffer_next_glyph
(
hb_buffer_t
*
buffer
);
...
...
@@ -125,6 +132,9 @@ struct _hb_buffer_t {
{
_hb_buffer_replace_glyphs_be16
(
this
,
num_in
,
num_out
,
glyph_data_be
);
}
inline
void
replace_glyph
(
hb_codepoint_t
glyph_index
)
{
_hb_buffer_replace_glyph
(
this
,
glyph_index
);
}
inline
void
output_glyph
(
hb_codepoint_t
glyph_index
)
{
_hb_buffer_output_glyph
(
this
,
glyph_index
);
}
inline
void
skip_glyph
(
void
)
{
_hb_buffer_skip_glyph
(
this
);
}
inline
void
reset_masks
(
hb_mask_t
mask
)
{
...
...
src/hb-buffer.cc
浏览文件 @
9111b21e
...
...
@@ -404,8 +404,8 @@ _hb_buffer_replace_glyphs_be16 (hb_buffer_t *buffer,
}
void
_hb_buffer_
replace
_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
)
_hb_buffer_
output
_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
)
{
hb_glyph_info_t
*
info
;
...
...
@@ -420,10 +420,23 @@ _hb_buffer_replace_glyph (hb_buffer_t *buffer,
info
=
&
buffer
->
out_info
[
buffer
->
out_len
];
info
->
codepoint
=
glyph_index
;
buffer
->
i
++
;
buffer
->
out_len
++
;
}
void
_hb_buffer_replace_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
)
{
_hb_buffer_output_glyph
(
buffer
,
glyph_index
);
_hb_buffer_skip_glyph
(
buffer
);
}
void
_hb_buffer_skip_glyph
(
hb_buffer_t
*
buffer
)
{
buffer
->
i
++
;
}
void
_hb_buffer_next_glyph
(
hb_buffer_t
*
buffer
)
{
...
...
src/hb-ot-shape.cc
浏览文件 @
9111b21e
...
...
@@ -264,7 +264,7 @@ hb_map_glyphs (hb_font_t *font,
if
(
unlikely
(
is_variation_selector
(
buffer
->
info
[
buffer
->
i
+
1
].
codepoint
)))
{
hb_font_get_glyph
(
font
,
buffer
->
info
[
buffer
->
i
].
codepoint
,
buffer
->
info
[
buffer
->
i
+
1
].
codepoint
,
&
glyph
);
buffer
->
replace_glyph
(
glyph
);
buffer
->
i
++
;
buffer
->
skip_glyph
()
;
}
else
{
hb_font_get_glyph
(
font
,
buffer
->
info
[
buffer
->
i
].
codepoint
,
0
,
&
glyph
);
buffer
->
replace_glyph
(
glyph
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录