Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2a3d911f
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看板
提交
2a3d911f
编写于
6月 07, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix alignment-requirement missmatch
Detected by clang and lots of cmdline options.
上级
6095de16
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
6 deletion
+7
-6
src/hb-buffer-private.hh
src/hb-buffer-private.hh
+1
-1
src/hb-buffer.cc
src/hb-buffer.cc
+3
-2
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsub-table.hh
+2
-2
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+1
-1
未找到文件。
src/hb-buffer-private.hh
浏览文件 @
2a3d911f
...
@@ -112,7 +112,7 @@ struct _hb_buffer_t {
...
@@ -112,7 +112,7 @@ struct _hb_buffer_t {
HB_INTERNAL
void
clear_positions
(
void
);
HB_INTERNAL
void
clear_positions
(
void
);
HB_INTERNAL
void
replace_glyphs_be16
(
unsigned
int
num_in
,
HB_INTERNAL
void
replace_glyphs_be16
(
unsigned
int
num_in
,
unsigned
int
num_out
,
unsigned
int
num_out
,
const
uint16_t
*
glyph_data_be
);
const
char
*
glyph_data_be
);
HB_INTERNAL
void
replace_glyphs
(
unsigned
int
num_in
,
HB_INTERNAL
void
replace_glyphs
(
unsigned
int
num_in
,
unsigned
int
num_out
,
unsigned
int
num_out
,
const
hb_codepoint_t
*
glyph_data
);
const
hb_codepoint_t
*
glyph_data
);
...
...
src/hb-buffer.cc
浏览文件 @
2a3d911f
...
@@ -233,7 +233,7 @@ hb_buffer_t::swap_buffers (void)
...
@@ -233,7 +233,7 @@ hb_buffer_t::swap_buffers (void)
void
void
hb_buffer_t
::
replace_glyphs_be16
(
unsigned
int
num_in
,
hb_buffer_t
::
replace_glyphs_be16
(
unsigned
int
num_in
,
unsigned
int
num_out
,
unsigned
int
num_out
,
const
uint16_t
*
glyph_data_be
)
const
char
*
glyph_data_be
)
{
{
if
(
!
make_room_for
(
num_in
,
num_out
))
return
;
if
(
!
make_room_for
(
num_in
,
num_out
))
return
;
...
@@ -245,10 +245,11 @@ hb_buffer_t::replace_glyphs_be16 (unsigned int num_in,
...
@@ -245,10 +245,11 @@ hb_buffer_t::replace_glyphs_be16 (unsigned int num_in,
}
}
hb_glyph_info_t
*
pinfo
=
&
out_info
[
out_len
];
hb_glyph_info_t
*
pinfo
=
&
out_info
[
out_len
];
const
unsigned
char
*
data
=
(
const
unsigned
char
*
)
glyph_data_be
;
for
(
unsigned
int
i
=
0
;
i
<
num_out
;
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
num_out
;
i
++
)
{
{
*
pinfo
=
orig_info
;
*
pinfo
=
orig_info
;
pinfo
->
codepoint
=
hb_be_uint16
(
glyph_data_be
[
i
])
;
pinfo
->
codepoint
=
(
data
[
2
*
i
]
<<
8
)
|
data
[
2
*
i
+
1
]
;
pinfo
++
;
pinfo
++
;
}
}
...
...
src/hb-ot-layout-gsub-table.hh
浏览文件 @
2a3d911f
...
@@ -213,7 +213,7 @@ struct Sequence
...
@@ -213,7 +213,7 @@ struct Sequence
if
(
unlikely
(
!
substitute
.
len
))
return
TRACE_RETURN
(
false
);
if
(
unlikely
(
!
substitute
.
len
))
return
TRACE_RETURN
(
false
);
unsigned
int
klass
=
c
->
property
&
HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE
?
HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH
:
0
;
unsigned
int
klass
=
c
->
property
&
HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE
?
HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH
:
0
;
c
->
replace_glyphs_be16
(
1
,
substitute
.
len
,
(
const
uint16_t
*
)
substitute
.
array
,
klass
);
c
->
replace_glyphs_be16
(
1
,
substitute
.
len
,
(
const
char
*
)
substitute
.
array
,
klass
);
return
TRACE_RETURN
(
true
);
return
TRACE_RETURN
(
true
);
}
}
...
@@ -502,7 +502,7 @@ struct Ligature
...
@@ -502,7 +502,7 @@ struct Ligature
if
(
skippy_iter
.
idx
<
c
->
buffer
->
idx
+
count
)
/* No input glyphs skipped */
if
(
skippy_iter
.
idx
<
c
->
buffer
->
idx
+
count
)
/* No input glyphs skipped */
{
{
c
->
replace_glyphs_be16
(
count
,
1
,
(
const
uint16_t
*
)
&
ligGlyph
,
klass
);
c
->
replace_glyphs_be16
(
count
,
1
,
(
const
char
*
)
&
ligGlyph
,
klass
);
}
}
else
else
{
{
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
2a3d911f
...
@@ -230,7 +230,7 @@ struct hb_apply_context_t
...
@@ -230,7 +230,7 @@ struct hb_apply_context_t
}
}
inline
void
replace_glyphs_be16
(
unsigned
int
num_in
,
inline
void
replace_glyphs_be16
(
unsigned
int
num_in
,
unsigned
int
num_out
,
unsigned
int
num_out
,
const
uint16_t
*
glyph_data_be
,
const
char
*
glyph_data_be
,
unsigned
int
klass
=
0
)
const
unsigned
int
klass
=
0
)
const
{
{
buffer
->
cur
().
props_cache
()
=
klass
;
/* XXX if has gdef? */
buffer
->
cur
().
props_cache
()
=
klass
;
/* XXX if has gdef? */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录