Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
0c3b061a
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看板
提交
0c3b061a
编写于
11月 07, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[kern] Apply erlier, where GPOS/kerx are applied
上级
f4bad008
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
9 deletion
+15
-9
src/hb-aat-layout-kerx-table.hh
src/hb-aat-layout-kerx-table.hh
+1
-2
src/hb-ot-shape-fallback.cc
src/hb-ot-shape-fallback.cc
+9
-0
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+5
-7
未找到文件。
src/hb-aat-layout-kerx-table.hh
浏览文件 @
0c3b061a
...
...
@@ -889,8 +889,7 @@ struct KerxTable
if
(
HB_DIRECTION_IS_HORIZONTAL
(
c
->
buffer
->
props
.
direction
)
!=
st
->
u
.
header
.
is_horizontal
())
goto
skip
;
reverse
=
T
::
Types
::
extended
/* TODO remove after kern application is moved earlier. */
&&
bool
(
st
->
u
.
header
.
coverage
&
st
->
u
.
header
.
Backwards
)
!=
reverse
=
bool
(
st
->
u
.
header
.
coverage
&
st
->
u
.
header
.
Backwards
)
!=
HB_DIRECTION_IS_BACKWARD
(
c
->
buffer
->
props
.
direction
);
if
(
!
c
->
buffer
->
message
(
c
->
font
,
"start %c%c%c%c subtable %d"
,
HB_UNTAG
(
thiz
()
->
tableTag
),
c
->
lookup_index
))
...
...
src/hb-ot-shape-fallback.cc
浏览文件 @
0c3b061a
...
...
@@ -464,9 +464,18 @@ _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
!
font
->
has_glyph_h_kerning_func
()
:
!
font
->
has_glyph_v_kerning_func
())
return
;
bool
reverse
=
HB_DIRECTION_IS_BACKWARD
(
buffer
->
props
.
direction
);
if
(
reverse
)
buffer
->
reverse
();
hb_ot_shape_fallback_kern_driver_t
driver
(
font
,
buffer
);
OT
::
hb_kern_machine_t
<
hb_ot_shape_fallback_kern_driver_t
>
machine
(
driver
);
machine
.
kern
(
font
,
buffer
,
plan
->
kern_mask
,
false
);
if
(
reverse
)
buffer
->
reverse
();
}
...
...
src/hb-ot-shape.cc
浏览文件 @
0c3b061a
...
...
@@ -866,10 +866,15 @@ hb_ot_position_complex (const hb_ot_shape_context_t *c)
break
;
}
/* XXX Clean up relationship between these. */
if
(
c
->
plan
->
apply_gpos
)
c
->
plan
->
position
(
c
->
font
,
c
->
buffer
);
else
if
(
c
->
plan
->
apply_kerx
)
hb_aat_layout_position
(
c
->
plan
,
c
->
font
,
c
->
buffer
);
else
if
(
c
->
plan
->
apply_kern
)
hb_ot_layout_kern
(
c
->
plan
,
c
->
font
,
c
->
buffer
);
else
if
(
c
->
plan
->
fallback_kerning
)
_hb_ot_shape_fallback_kern
(
c
->
plan
,
c
->
font
,
c
->
buffer
);
if
(
c
->
plan
->
apply_trak
)
hb_aat_layout_track
(
c
->
plan
,
c
->
font
,
c
->
buffer
);
...
...
@@ -915,13 +920,6 @@ hb_ot_position (const hb_ot_shape_context_t *c)
if
(
HB_DIRECTION_IS_BACKWARD
(
c
->
buffer
->
props
.
direction
))
hb_buffer_reverse
(
c
->
buffer
);
/* Visual fallback goes here. */
if
(
c
->
plan
->
apply_kern
)
hb_ot_layout_kern
(
c
->
plan
,
c
->
font
,
c
->
buffer
);
else
if
(
c
->
plan
->
fallback_kerning
)
_hb_ot_shape_fallback_kern
(
c
->
plan
,
c
->
font
,
c
->
buffer
);
_hb_buffer_deallocate_gsubgpos_vars
(
c
->
buffer
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录