Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
1d5e7801
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,发现更多精彩内容 >>
提交
1d5e7801
编写于
5月 12, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add a few other buffer methods
上级
d0316a81
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
14 addition
and
18 deletion
+14
-18
src/hb-buffer-private.hh
src/hb-buffer-private.hh
+7
-4
src/hb-buffer.cc
src/hb-buffer.cc
+0
-7
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsub-private.hh
+5
-5
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+2
-2
未找到文件。
src/hb-buffer-private.hh
浏览文件 @
1d5e7801
...
...
@@ -94,10 +94,6 @@ _hb_buffer_add_output_glyph (hb_buffer_t *buffer,
HB_INTERNAL
void
_hb_buffer_next_glyph
(
hb_buffer_t
*
buffer
);
HB_INTERNAL
void
_hb_buffer_replace_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
);
struct
_hb_buffer_t
{
...
...
@@ -132,6 +128,13 @@ struct _hb_buffer_t {
/* Methods */
inline
unsigned
int
allocate_lig_id
(
void
)
{
return
max_lig_id
++
;
}
inline
void
swap
(
void
)
{
_hb_buffer_swap
(
this
);
}
inline
void
clear_output
(
void
)
{
_hb_buffer_clear_output
(
this
);
}
inline
void
next_glyph
(
void
)
{
_hb_buffer_next_glyph
(
this
);
}
inline
void
add_output_glyph
(
hb_codepoint_t
glyph_index
,
unsigned
short
component
=
0xFFFF
,
unsigned
short
ligID
=
0xFFFF
)
{
_hb_buffer_add_output_glyph
(
this
,
glyph_index
,
component
,
ligID
);
}
inline
void
replace_glyph
(
hb_codepoint_t
glyph_index
)
{
add_output_glyph
(
glyph_index
);
}
};
...
...
src/hb-buffer.cc
浏览文件 @
1d5e7801
...
...
@@ -443,13 +443,6 @@ _hb_buffer_next_glyph (hb_buffer_t *buffer)
buffer
->
in_pos
++
;
}
void
_hb_buffer_replace_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
)
{
_hb_buffer_add_output_glyph
(
buffer
,
glyph_index
,
0xFFFF
,
0xFFFF
);
}
unsigned
int
hb_buffer_get_length
(
hb_buffer_t
*
buffer
)
...
...
src/hb-ot-layout-gsub-private.hh
浏览文件 @
1d5e7801
...
...
@@ -49,7 +49,7 @@ struct SingleSubstFormat1
return
false
;
glyph_id
+=
deltaGlyphID
;
_hb_buffer_replace_glyph
(
context
->
buffer
,
glyph_id
);
context
->
buffer
->
replace_glyph
(
glyph_id
);
/* We inherit the old glyph class to the substituted glyph */
if
(
_hb_ot_layout_has_new_glyph_classes
(
context
->
layout
->
face
))
...
...
@@ -93,7 +93,7 @@ struct SingleSubstFormat2
return
false
;
glyph_id
=
substitute
[
index
];
_hb_buffer_replace_glyph
(
context
->
buffer
,
glyph_id
);
context
->
buffer
->
replace_glyph
(
glyph_id
);
/* We inherit the old glyph class to the substituted glyph */
if
(
_hb_ot_layout_has_new_glyph_classes
(
context
->
layout
->
face
))
...
...
@@ -302,7 +302,7 @@ struct AlternateSubstFormat1
glyph_id
=
alt_set
[
alt_index
];
_hb_buffer_replace_glyph
(
context
->
buffer
,
glyph_id
);
context
->
buffer
->
replace_glyph
(
glyph_id
);
/* We inherit the old glyph class to the substituted glyph */
if
(
_hb_ot_layout_has_new_glyph_classes
(
context
->
layout
->
face
))
...
...
@@ -832,7 +832,7 @@ struct SubstLookup : Lookup
if
(
likely
(
!
is_reverse
()))
{
/* in/out forward substitution */
_hb_buffer_clear_output
(
buffer
);
buffer
->
clear_output
(
);
buffer
->
in_pos
=
0
;
while
(
buffer
->
in_pos
<
buffer
->
in_length
)
{
...
...
@@ -840,7 +840,7 @@ struct SubstLookup : Lookup
apply_once
(
layout
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
))
ret
=
true
;
else
_hb_buffer_next_glyph
(
buffer
);
buffer
->
next_glyph
(
);
}
if
(
ret
)
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
1d5e7801
...
...
@@ -208,7 +208,7 @@ static inline bool apply_lookup (hb_apply_context_t *context,
if
(
unlikely
(
context
->
buffer
->
in_pos
==
end
))
return
true
;
/* No lookup applied for this index */
_hb_buffer_next_glyph
(
context
->
buffer
);
context
->
buffer
->
next_glyph
(
);
}
if
(
lookupCount
&&
i
==
lookupRecord
->
sequenceIndex
)
...
...
@@ -232,7 +232,7 @@ static inline bool apply_lookup (hb_apply_context_t *context,
{
not_applied:
/* No lookup applied for this index */
_hb_buffer_next_glyph
(
context
->
buffer
);
context
->
buffer
->
next_glyph
(
);
i
++
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录