Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
f9abbf83
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看板
提交
f9abbf83
编写于
6月 02, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix fallout from
975bdd5e
Ouch!
上级
f7515769
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
47 addition
and
21 deletion
+47
-21
src/hb-ot-map-private.hh
src/hb-ot-map-private.hh
+22
-18
src/hb-ot-map.cc
src/hb-ot-map.cc
+11
-0
src/hb-ot-post-table.hh
src/hb-ot-post-table.hh
+2
-1
src/hb-ot-shape-private.hh
src/hb-ot-shape-private.hh
+8
-2
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+2
-0
src/hb-subset.cc
src/hb-subset.cc
+2
-0
未找到文件。
src/hb-ot-map-private.hh
浏览文件 @
f9abbf83
...
...
@@ -78,7 +78,26 @@ struct hb_ot_map_t
pause_func_t
pause_func
;
};
hb_ot_map_t
(
void
)
{
memset
(
this
,
0
,
sizeof
(
*
this
));
}
inline
void
init
(
void
)
{
memset
(
this
,
0
,
sizeof
(
*
this
));
features
.
init
();
for
(
unsigned
int
table_index
=
0
;
table_index
<
2
;
table_index
++
)
{
lookups
[
table_index
].
init
();
stages
[
table_index
].
init
();
}
}
inline
void
fini
(
void
)
{
features
.
fini
();
for
(
unsigned
int
table_index
=
0
;
table_index
<
2
;
table_index
++
)
{
lookups
[
table_index
].
fini
();
stages
[
table_index
].
fini
();
}
}
inline
hb_mask_t
get_global_mask
(
void
)
const
{
return
global_mask
;
}
...
...
@@ -129,15 +148,6 @@ struct hb_ot_map_t
HB_INTERNAL
void
substitute
(
const
struct
hb_ot_shape_plan_t
*
plan
,
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
const
;
HB_INTERNAL
void
position
(
const
struct
hb_ot_shape_plan_t
*
plan
,
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
const
;
inline
void
fini
(
void
)
{
features
.
fini
();
for
(
unsigned
int
table_index
=
0
;
table_index
<
2
;
table_index
++
)
{
lookups
[
table_index
].
fini
();
stages
[
table_index
].
fini
();
}
}
public:
hb_tag_t
chosen_script
[
2
];
bool
found_script
[
2
];
...
...
@@ -171,6 +181,8 @@ struct hb_ot_map_builder_t
HB_INTERNAL
hb_ot_map_builder_t
(
hb_face_t
*
face_
,
const
hb_segment_properties_t
*
props_
);
HB_INTERNAL
~
hb_ot_map_builder_t
(
void
);
HB_INTERNAL
void
add_feature
(
hb_tag_t
tag
,
unsigned
int
value
,
hb_ot_map_feature_flags_t
flags
);
...
...
@@ -186,14 +198,6 @@ struct hb_ot_map_builder_t
const
int
*
coords
,
unsigned
int
num_coords
);
inline
void
fini
(
void
)
{
feature_infos
.
fini
();
for
(
unsigned
int
table_index
=
0
;
table_index
<
2
;
table_index
++
)
{
stages
[
table_index
].
fini
();
}
}
private:
HB_INTERNAL
void
add_lookups
(
hb_ot_map_t
&
m
,
...
...
src/hb-ot-map.cc
浏览文件 @
f9abbf83
...
...
@@ -43,6 +43,10 @@ hb_ot_map_builder_t::hb_ot_map_builder_t (hb_face_t *face_,
{
memset
(
this
,
0
,
sizeof
(
*
this
));
feature_infos
.
init
();
for
(
unsigned
int
table_index
=
0
;
table_index
<
2
;
table_index
++
)
stages
[
table_index
].
init
();
face
=
face_
;
props
=
*
props_
;
...
...
@@ -63,6 +67,13 @@ hb_ot_map_builder_t::hb_ot_map_builder_t (hb_face_t *face_,
}
}
hb_ot_map_builder_t
::~
hb_ot_map_builder_t
(
void
)
{
feature_infos
.
fini
();
for
(
unsigned
int
table_index
=
0
;
table_index
<
2
;
table_index
++
)
stages
[
table_index
].
fini
();
}
void
hb_ot_map_builder_t
::
add_feature
(
hb_tag_t
tag
,
unsigned
int
value
,
hb_ot_map_feature_flags_t
flags
)
{
...
...
src/hb-ot-post-table.hh
浏览文件 @
f9abbf83
...
...
@@ -109,12 +109,13 @@ struct post
{
inline
void
init
(
hb_face_t
*
face
)
{
index_to_offset
.
init
();
blob
=
Sanitizer
<
post
>
().
sanitize
(
face
->
reference_table
(
HB_OT_TAG_post
));
const
post
*
table
=
blob
->
as
<
post
>
();
unsigned
int
table_length
=
blob
->
length
;
version
=
table
->
version
.
to_int
();
index_to_offset
.
init
();
if
(
version
!=
0x00020000
)
return
;
...
...
src/hb-ot-shape-private.hh
浏览文件 @
f9abbf83
...
...
@@ -59,7 +59,14 @@ struct hb_ot_shape_plan_t
inline
void
substitute
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
const
{
map
.
substitute
(
this
,
font
,
buffer
);
}
inline
void
position
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
const
{
map
.
position
(
this
,
font
,
buffer
);
}
void
fini
(
void
)
{
map
.
fini
();
}
void
init
(
void
)
{
memset
(
this
,
0
,
sizeof
(
*
this
));
map
.
init
();
}
void
fini
(
void
)
{
map
.
fini
();
}
};
struct
hb_ot_shape_planner_t
...
...
@@ -75,7 +82,6 @@ struct hb_ot_shape_planner_t
props
(
master_plan
->
props
),
shaper
(
nullptr
),
map
(
face
,
&
props
)
{}
~
hb_ot_shape_planner_t
(
void
)
{
map
.
fini
();
}
inline
void
compile
(
hb_ot_shape_plan_t
&
plan
,
const
int
*
coords
,
...
...
src/hb-ot-shape.cc
浏览文件 @
f9abbf83
...
...
@@ -180,6 +180,8 @@ _hb_ot_shaper_shape_plan_data_create (hb_shape_plan_t *shape_plan,
if
(
unlikely
(
!
plan
))
return
nullptr
;
plan
->
init
();
hb_ot_shape_planner_t
planner
(
shape_plan
);
planner
.
shaper
=
hb_ot_shape_complex_categorize
(
&
planner
);
...
...
src/hb-subset.cc
浏览文件 @
f9abbf83
...
...
@@ -133,6 +133,8 @@ _hb_subset_face_data_create (void)
if
(
unlikely
(
!
data
))
return
nullptr
;
data
->
tables
.
init
();
return
data
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录