Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
25e7ef70
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,发现更多精彩内容 >>
提交
25e7ef70
编写于
11月 06, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add _hb_buffer_add_output_glyphs() that takes codepoint_t*
上级
9db8ad75
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
60 addition
and
11 deletion
+60
-11
src/hb-buffer-private.h
src/hb-buffer-private.h
+9
-1
src/hb-buffer.c
src/hb-buffer.c
+43
-2
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsub-private.hh
+8
-8
未找到文件。
src/hb-buffer-private.h
浏览文件 @
25e7ef70
...
...
@@ -102,10 +102,18 @@ HB_INTERNAL void
_hb_buffer_add_output_glyphs
(
hb_buffer_t
*
buffer
,
unsigned
int
num_in
,
unsigned
int
num_out
,
const
uint16_t
*
glyph_data_be
,
const
hb_codepoint_t
*
glyph_data
,
unsigned
short
component
,
unsigned
short
ligID
);
HB_INTERNAL
void
_hb_buffer_add_output_glyphs_be16
(
hb_buffer_t
*
buffer
,
unsigned
int
num_in
,
unsigned
int
num_out
,
const
uint16_t
*
glyph_data_be
,
unsigned
short
component
,
unsigned
short
ligID
);
HB_INTERNAL
void
_hb_buffer_add_output_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
,
...
...
src/hb-buffer.c
浏览文件 @
25e7ef70
...
...
@@ -305,11 +305,12 @@ _hb_buffer_swap (hb_buffer_t *buffer)
The cluster value for the glyph at position buffer->in_pos is used
for all replacement glyphs */
void
_hb_buffer_add_output_glyphs
(
hb_buffer_t
*
buffer
,
unsigned
int
num_in
,
unsigned
int
num_out
,
const
uint16_t
*
glyph_data_be
,
const
hb_codepoint_t
*
glyph_data
,
unsigned
short
component
,
unsigned
short
lig_id
)
{
...
...
@@ -333,7 +334,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
for
(
i
=
0
;
i
<
num_out
;
i
++
)
{
hb_internal_glyph_info_t
*
info
=
&
buffer
->
out_string
[
buffer
->
out_pos
+
i
];
info
->
codepoint
=
hb_be_uint16
(
glyph_data_be
[
i
])
;
info
->
codepoint
=
glyph_data
[
i
]
;
info
->
mask
=
mask
;
info
->
cluster
=
cluster
;
info
->
component
=
component
;
...
...
@@ -346,6 +347,46 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
buffer
->
out_length
=
buffer
->
out_pos
;
}
void
_hb_buffer_add_output_glyphs_be16
(
hb_buffer_t
*
buffer
,
unsigned
int
num_in
,
unsigned
int
num_out
,
const
uint16_t
*
glyph_data_be
,
unsigned
short
component
,
unsigned
short
lig_id
)
{
unsigned
int
i
;
unsigned
int
mask
;
unsigned
int
cluster
;
if
(
buffer
->
out_string
!=
buffer
->
in_string
||
buffer
->
out_pos
+
num_out
>
buffer
->
in_pos
+
num_in
)
{
hb_buffer_ensure_separate
(
buffer
,
buffer
->
out_pos
+
num_out
);
}
mask
=
buffer
->
in_string
[
buffer
->
in_pos
].
mask
;
cluster
=
buffer
->
in_string
[
buffer
->
in_pos
].
cluster
;
if
(
component
==
0xFFFF
)
component
=
buffer
->
in_string
[
buffer
->
in_pos
].
component
;
if
(
lig_id
==
0xFFFF
)
lig_id
=
buffer
->
in_string
[
buffer
->
in_pos
].
lig_id
;
for
(
i
=
0
;
i
<
num_out
;
i
++
)
{
hb_internal_glyph_info_t
*
info
=
&
buffer
->
out_string
[
buffer
->
out_pos
+
i
];
info
->
codepoint
=
hb_be_uint16
(
glyph_data_be
[
i
]);
info
->
mask
=
mask
;
info
->
cluster
=
cluster
;
info
->
component
=
component
;
info
->
lig_id
=
lig_id
;
info
->
gproperty
=
HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN
;
}
buffer
->
in_pos
+=
num_in
;
buffer
->
out_pos
+=
num_out
;
buffer
->
out_length
=
buffer
->
out_pos
;
}
void
_hb_buffer_add_output_glyph
(
hb_buffer_t
*
buffer
,
...
...
src/hb-ot-layout-gsub-private.hh
浏览文件 @
25e7ef70
...
...
@@ -158,9 +158,9 @@ struct Sequence
if
(
HB_UNLIKELY
(
!
substitute
.
len
))
return
false
;
_hb_buffer_add_output_glyphs
(
buffer
,
1
,
substitute
.
len
,
(
const
uint16_t
*
)
substitute
.
const_array
(),
0xFFFF
,
0xFFFF
);
_hb_buffer_add_output_glyphs
_be16
(
buffer
,
1
,
substitute
.
len
,
(
const
uint16_t
*
)
substitute
.
const_array
(),
0xFFFF
,
0xFFFF
);
/* This is a guess only ... */
if
(
_hb_ot_layout_has_new_glyph_classes
(
context
->
face
))
...
...
@@ -386,11 +386,11 @@ struct Ligature
if
(
j
==
buffer
->
in_pos
+
i
)
/* No input glyphs skipped */
/* We don't use a new ligature ID if there are no skipped
glyphs and the ligature already has an ID. */
_hb_buffer_add_output_glyphs
(
buffer
,
i
,
1
,
(
const
uint16_t
*
)
&
ligGlyph
,
0xFFFF
,
IN_LIGID
(
buffer
->
in_pos
)
?
0xFFFF
:
_hb_buffer_allocate_lig_id
(
buffer
));
_hb_buffer_add_output_glyphs
_be16
(
buffer
,
i
,
1
,
(
const
uint16_t
*
)
&
ligGlyph
,
0xFFFF
,
IN_LIGID
(
buffer
->
in_pos
)
?
0xFFFF
:
_hb_buffer_allocate_lig_id
(
buffer
));
else
{
unsigned
int
lig_id
=
_hb_buffer_allocate_lig_id
(
buffer
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录