Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
f47c5da0
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看板
提交
f47c5da0
编写于
11月 24, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[arrays] Use hb_array_t<> in all places with sub_array()
上级
3246a8eb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
15 deletion
+15
-15
src/hb-aat-layout-lcar-table.hh
src/hb-aat-layout-lcar-table.hh
+3
-3
src/hb-ot-layout-gdef-table.hh
src/hb-ot-layout-gdef-table.hh
+8
-6
src/hb-ot-math-table.hh
src/hb-ot-math-table.hh
+4
-6
未找到文件。
src/hb-aat-layout-lcar-table.hh
浏览文件 @
f47c5da0
...
...
@@ -52,10 +52,10 @@ struct lcar
const
OffsetTo
<
LigCaretClassEntry
>*
entry_offset
=
lookup
.
get_value
(
glyph
,
font
->
face
->
get_num_glyphs
());
const
LigCaretClassEntry
&
array
=
entry_offset
?
this
+*
entry_offset
:
Null
(
LigCaretClassEntry
);
if
(
caret_count
&&
*
caret_count
)
if
(
caret_count
)
{
const
HBINT16
*
arr
=
array
.
sub_array
(
start_offset
,
caret_count
);
unsigned
int
count
=
*
caret_count
;
hb_array_t
<
const
HBINT16
>
arr
=
array
.
sub_array
(
start_offset
,
caret_count
);
unsigned
int
count
=
arr
.
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
++
i
)
switch
(
format
)
{
...
...
src/hb-ot-layout-gdef-table.hh
浏览文件 @
f47c5da0
...
...
@@ -61,9 +61,10 @@ struct AttachList
const
AttachPoint
&
points
=
this
+
attachPoint
[
index
];
if
(
point_count
)
{
const
HBUINT16
*
array
=
points
.
sub_array
(
start_offset
,
point_count
);
unsigned
int
count
=
*
point_count
;
if
(
point_count
)
{
hb_array_t
<
const
HBUINT16
>
array
=
points
.
sub_array
(
start_offset
,
point_count
);
unsigned
int
count
=
array
.
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
point_array
[
i
]
=
array
[
i
];
}
...
...
@@ -216,9 +217,10 @@ struct LigGlyph
unsigned
int
*
caret_count
/* IN/OUT */
,
hb_position_t
*
caret_array
/* OUT */
)
const
{
if
(
caret_count
)
{
const
OffsetTo
<
CaretValue
>
*
array
=
carets
.
sub_array
(
start_offset
,
caret_count
);
unsigned
int
count
=
*
caret_count
;
if
(
caret_count
)
{
hb_array_t
<
const
OffsetTo
<
CaretValue
>
>
array
=
carets
.
sub_array
(
start_offset
,
caret_count
);
unsigned
int
count
=
array
.
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
caret_array
[
i
]
=
(
this
+
array
[
i
]).
get_caret_value
(
font
,
direction
,
glyph_id
,
var_store
);
}
...
...
src/hb-ot-math-table.hh
浏览文件 @
f47c5da0
...
...
@@ -509,9 +509,8 @@ struct MathGlyphAssembly
if
(
parts_count
)
{
int
scale
=
font
->
dir_scale
(
direction
);
const
MathGlyphPartRecord
*
arr
=
partRecords
.
sub_array
(
start_offset
,
parts_count
);
unsigned
int
count
=
*
parts_count
;
hb_array_t
<
const
MathGlyphPartRecord
>
arr
=
partRecords
.
sub_array
(
start_offset
,
parts_count
);
unsigned
int
count
=
arr
.
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
arr
[
i
].
extract
(
parts
[
i
],
scale
,
font
);
}
...
...
@@ -556,9 +555,8 @@ struct MathGlyphConstruction
if
(
variants_count
)
{
int
scale
=
font
->
dir_scale
(
direction
);
const
MathGlyphVariantRecord
*
arr
=
mathGlyphVariantRecord
.
sub_array
(
start_offset
,
variants_count
);
unsigned
int
count
=
*
variants_count
;
hb_array_t
<
const
MathGlyphVariantRecord
>
arr
=
mathGlyphVariantRecord
.
sub_array
(
start_offset
,
variants_count
);
unsigned
int
count
=
arr
.
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
{
variants
[
i
].
glyph
=
arr
[
i
].
variantGlyph
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录