Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
550bd14d
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看板
提交
550bd14d
编写于
11月 04, 2015
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Actually commit changes for previous commit
上级
ff31b3c1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
7 deletion
+10
-7
src/hb-buffer-private.hh
src/hb-buffer-private.hh
+2
-0
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+8
-7
未找到文件。
src/hb-buffer-private.hh
浏览文件 @
550bd14d
...
...
@@ -46,6 +46,8 @@ enum hb_buffer_scratch_flags_t {
HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII
=
0x00000001u
,
HB_BUFFER_SCRATCH_FLAG_HAS_DEFAULT_IGNORABLES
=
0x00000002u
,
HB_BUFFER_SCRATCH_FLAG_HAS_SPACE_FALLBACK
=
0x00000004u
,
HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_CURSIVE
=
0x00000008u
,
HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_ATTACHMENT
=
0x00000010u
,
};
template
<
>
class
hb_mark_as_flags_t
<
hb_buffer_scratch_flags_t
>
{};
...
...
src/hb-ot-layout-gpos-table.hh
浏览文件 @
550bd14d
...
...
@@ -426,6 +426,7 @@ struct MarkArray : ArrayOf<MarkRecord> /* Array of MarkRecords--in Coverage orde
o
.
x_offset
=
base_x
-
mark_x
;
o
.
y_offset
=
base_y
-
mark_y
;
o
.
attach_lookback
()
=
buffer
->
idx
-
glyph_pos
;
buffer
->
scratch_flags
|=
HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_ATTACHMENT
;
buffer
->
idx
++
;
return_trace
(
true
);
...
...
@@ -993,6 +994,7 @@ struct CursivePosFormat1
reverse_cursive_minor_offset
(
pos
,
child
,
c
->
direction
,
parent
);
pos
[
child
].
cursive_chain
()
=
parent
-
child
;
buffer
->
scratch_flags
|=
HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_CURSIVE
;
if
(
likely
(
HB_DIRECTION_IS_HORIZONTAL
(
c
->
direction
)))
pos
[
child
].
y_offset
=
y_offset
;
else
...
...
@@ -1599,15 +1601,14 @@ GPOS::position_finish (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
hb_direction_t
direction
=
buffer
->
props
.
direction
;
/* Handle cursive connections */
for
(
unsigned
int
i
=
0
;
i
<
len
;
i
++
)
fix_cursive_minor_offset
(
pos
,
i
,
direction
);
if
(
!
(
buffer
->
scratch_flags
&
HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII
))
return
;
if
(
buffer
->
scratch_flags
&
HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_CURSIVE
)
for
(
unsigned
int
i
=
0
;
i
<
len
;
i
++
)
fix_cursive_minor_offset
(
pos
,
i
,
direction
);
/* Handle attachments */
for
(
unsigned
int
i
=
0
;
i
<
len
;
i
++
)
fix_mark_attachment
(
pos
,
i
,
direction
);
if
(
buffer
->
scratch_flags
&
HB_BUFFER_SCRATCH_FLAG_HAS_GPOS_ATTACHMENT
)
for
(
unsigned
int
i
=
0
;
i
<
len
;
i
++
)
fix_mark_attachment
(
pos
,
i
,
direction
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录