Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
65456bff
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
65456bff
编写于
11月 12, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[shape-plan] Minor
上级
1db672a5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
11 deletion
+13
-11
src/hb-shape-plan.cc
src/hb-shape-plan.cc
+8
-7
src/hb-shape-plan.hh
src/hb-shape-plan.hh
+5
-4
未找到文件。
src/hb-shape-plan.cc
浏览文件 @
65456bff
...
@@ -161,7 +161,6 @@ hb_shape_plan_create2 (hb_face_t *face,
...
@@ -161,7 +161,6 @@ hb_shape_plan_create2 (hb_face_t *face,
face
=
hb_face_get_empty
();
face
=
hb_face_get_empty
();
hb_face_make_immutable
(
face
);
hb_face_make_immutable
(
face
);
shape_plan
->
custom_shaper_list
=
shaper_list
;
shape_plan
->
face_unsafe
=
face
;
shape_plan
->
face_unsafe
=
face
;
shape_plan
->
props
=
*
props
;
shape_plan
->
props
=
*
props
;
shape_plan
->
num_user_features
=
num_user_features
;
shape_plan
->
num_user_features
=
num_user_features
;
...
@@ -172,7 +171,7 @@ hb_shape_plan_create2 (hb_face_t *face,
...
@@ -172,7 +171,7 @@ hb_shape_plan_create2 (hb_face_t *face,
shape_plan
->
coords
=
coords
;
shape_plan
->
coords
=
coords
;
if
(
num_coords
)
if
(
num_coords
)
memcpy
(
coords
,
orig_coords
,
num_coords
*
sizeof
(
int
));
memcpy
(
coords
,
orig_coords
,
num_coords
*
sizeof
(
int
));
shape_plan
->
custom_shaper_list
=
shaper_list
;
hb_shape_plan_choose_shaper
(
shape_plan
,
hb_shape_plan_choose_shaper
(
shape_plan
,
user_features
,
num_user_features
,
user_features
,
num_user_features
,
coords
,
num_coords
,
coords
,
num_coords
,
...
@@ -369,11 +368,11 @@ hb_shape_plan_hash (const hb_shape_plan_t *shape_plan)
...
@@ -369,11 +368,11 @@ hb_shape_plan_hash (const hb_shape_plan_t *shape_plan)
struct
hb_shape_plan_proposal_t
struct
hb_shape_plan_proposal_t
{
{
const
hb_segment_properties_t
props
;
const
hb_segment_properties_t
props
;
const
char
*
const
*
shaper_list
;
const
hb_feature_t
*
user_features
;
const
hb_feature_t
*
user_features
;
unsigned
int
num_user_features
;
unsigned
int
num_user_features
;
const
int
*
coords
;
const
int
*
coords
;
unsigned
int
num_coords
;
unsigned
int
num_coords
;
bool
custom_shaper_list
;
hb_shape_func_t
*
shaper_func
;
hb_shape_func_t
*
shaper_func
;
};
};
...
@@ -411,7 +410,7 @@ hb_shape_plan_matches (const hb_shape_plan_t *shape_plan,
...
@@ -411,7 +410,7 @@ hb_shape_plan_matches (const hb_shape_plan_t *shape_plan,
return
hb_segment_properties_equal
(
&
shape_plan
->
props
,
&
proposal
->
props
)
&&
return
hb_segment_properties_equal
(
&
shape_plan
->
props
,
&
proposal
->
props
)
&&
hb_shape_plan_user_features_match
(
shape_plan
,
proposal
)
&&
hb_shape_plan_user_features_match
(
shape_plan
,
proposal
)
&&
hb_shape_plan_coords_match
(
shape_plan
,
proposal
)
&&
hb_shape_plan_coords_match
(
shape_plan
,
proposal
)
&&
((
!
shape_plan
->
custom_shaper_list
&&
!
proposal
->
shaper_list
)
||
((
!
shape_plan
->
custom_shaper_list
&&
!
proposal
->
custom_
shaper_list
)
||
(
shape_plan
->
shaper_func
==
proposal
->
shaper_func
));
(
shape_plan
->
shaper_func
==
proposal
->
shaper_func
));
}
}
...
@@ -477,17 +476,19 @@ hb_shape_plan_create_cached2 (hb_face_t *face,
...
@@ -477,17 +476,19 @@ hb_shape_plan_create_cached2 (hb_face_t *face,
num_user_features
,
num_user_features
,
shaper_list
);
shaper_list
);
hb_shape_plan_proposal_t
proposal
=
{
hb_shape_plan_proposal_t
proposal
=
{
*
props
,
*
props
,
shaper_list
,
user_features
,
user_features
,
num_user_features
,
num_user_features
,
coords
,
coords
,
num_coords
,
num_coords
,
shaper_list
,
nullptr
nullptr
};
};
if
(
shaper_list
)
{
if
(
shaper_list
)
{
/* Choose shaper. Adapted from hb_shape_plan_choose_shaper().
/* Choose shaper. Adapted from hb_shape_plan_choose_shaper().
* Must choose shaper exactly the same way as that function. */
* Must choose shaper exactly the same way as that function. */
for
(
const
char
*
const
*
shaper_item
=
shaper_list
;
*
shaper_item
;
shaper_item
++
)
for
(
const
char
*
const
*
shaper_item
=
shaper_list
;
*
shaper_item
;
shaper_item
++
)
...
...
src/hb-shape-plan.hh
浏览文件 @
65456bff
...
@@ -37,11 +37,8 @@ struct hb_shape_plan_t
...
@@ -37,11 +37,8 @@ struct hb_shape_plan_t
hb_object_header_t
header
;
hb_object_header_t
header
;
hb_face_t
*
face_unsafe
;
/* We don't carry a reference to face. */
hb_face_t
*
face_unsafe
;
/* We don't carry a reference to face. */
bool
custom_shaper_list
;
hb_segment_properties_t
props
;
hb_shape_func_t
*
shaper_func
;
hb_segment_properties_t
props
;
const
char
*
shaper_name
;
hb_feature_t
*
user_features
;
hb_feature_t
*
user_features
;
unsigned
int
num_user_features
;
unsigned
int
num_user_features
;
...
@@ -49,6 +46,10 @@ struct hb_shape_plan_t
...
@@ -49,6 +46,10 @@ struct hb_shape_plan_t
int
*
coords
;
int
*
coords
;
unsigned
int
num_coords
;
unsigned
int
num_coords
;
bool
custom_shaper_list
;
hb_shape_func_t
*
shaper_func
;
const
char
*
shaper_name
;
hb_ot_shape_plan_t
ot
;
hb_ot_shape_plan_t
ot
;
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录