Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
21646cc4
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
21646cc4
编写于
2月 16, 2018
作者:
D
David Corbett
提交者:
Behdad Esfahbod
2月 17, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Do not mark the first glyph as unsafe to break
Fixes #791.
上级
04dedec9
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
1 addition
and
11 deletion
+1
-11
src/hb-buffer-private.hh
src/hb-buffer-private.hh
+1
-2
src/hb-coretext.cc
src/hb-coretext.cc
+0
-4
src/hb-directwrite.cc
src/hb-directwrite.cc
+0
-2
src/hb-graphite2.cc
src/hb-graphite2.cc
+0
-1
src/hb-uniscribe.cc
src/hb-uniscribe.cc
+0
-2
未找到文件。
src/hb-buffer-private.hh
浏览文件 @
21646cc4
...
@@ -344,8 +344,7 @@ struct hb_buffer_t {
...
@@ -344,8 +344,7 @@ struct hb_buffer_t {
inline
void
inline
void
unsafe_to_break_all
(
void
)
unsafe_to_break_all
(
void
)
{
{
for
(
unsigned
int
i
=
0
;
i
<
len
;
i
++
)
unsafe_to_break_impl
(
0
,
len
);
info
[
i
].
mask
|=
HB_GLYPH_FLAG_UNSAFE_TO_BREAK
;
}
}
inline
void
inline
void
safe_to_break_all
(
void
)
safe_to_break_all
(
void
)
...
...
src/hb-coretext.cc
浏览文件 @
21646cc4
...
@@ -1244,8 +1244,6 @@ resize_and_retry:
...
@@ -1244,8 +1244,6 @@ resize_and_retry:
pos
->
x_offset
=
info
->
var1
.
i32
;
pos
->
x_offset
=
info
->
var1
.
i32
;
pos
->
y_offset
=
info
->
var2
.
i32
;
pos
->
y_offset
=
info
->
var2
.
i32
;
info
->
mask
=
HB_GLYPH_FLAG_UNSAFE_TO_BREAK
;
info
++
,
pos
++
;
info
++
,
pos
++
;
}
}
else
else
...
@@ -1255,8 +1253,6 @@ resize_and_retry:
...
@@ -1255,8 +1253,6 @@ resize_and_retry:
pos
->
x_offset
=
info
->
var1
.
i32
;
pos
->
x_offset
=
info
->
var1
.
i32
;
pos
->
y_offset
=
info
->
var2
.
i32
;
pos
->
y_offset
=
info
->
var2
.
i32
;
info
->
mask
=
HB_GLYPH_FLAG_UNSAFE_TO_BREAK
;
info
++
,
pos
++
;
info
++
,
pos
++
;
}
}
...
...
src/hb-directwrite.cc
浏览文件 @
21646cc4
...
@@ -878,8 +878,6 @@ retry_getglyphs:
...
@@ -878,8 +878,6 @@ retry_getglyphs:
pos
->
x_offset
=
pos
->
x_offset
=
x_mult
*
(
isRightToLeft
?
-
info
->
var1
.
i32
:
info
->
var1
.
i32
);
x_mult
*
(
isRightToLeft
?
-
info
->
var1
.
i32
:
info
->
var1
.
i32
);
pos
->
y_offset
=
y_mult
*
info
->
var2
.
i32
;
pos
->
y_offset
=
y_mult
*
info
->
var2
.
i32
;
info
->
mask
=
HB_GLYPH_FLAG_UNSAFE_TO_BREAK
;
}
}
if
(
isRightToLeft
)
if
(
isRightToLeft
)
...
...
src/hb-graphite2.cc
浏览文件 @
21646cc4
...
@@ -360,7 +360,6 @@ _hb_graphite2_shape (hb_shape_plan_t *shape_plan,
...
@@ -360,7 +360,6 @@ _hb_graphite2_shape (hb_shape_plan_t *shape_plan,
hb_glyph_info_t
*
info
=
&
buffer
->
info
[
clusters
[
i
].
base_glyph
+
j
];
hb_glyph_info_t
*
info
=
&
buffer
->
info
[
clusters
[
i
].
base_glyph
+
j
];
info
->
codepoint
=
gids
[
clusters
[
i
].
base_glyph
+
j
];
info
->
codepoint
=
gids
[
clusters
[
i
].
base_glyph
+
j
];
info
->
cluster
=
clusters
[
i
].
cluster
;
info
->
cluster
=
clusters
[
i
].
cluster
;
info
->
mask
=
HB_GLYPH_FLAG_UNSAFE_TO_BREAK
;
info
->
var1
.
i32
=
clusters
[
i
].
advance
;
// all glyphs in the cluster get the same advance
info
->
var1
.
i32
=
clusters
[
i
].
advance
;
// all glyphs in the cluster get the same advance
}
}
}
}
...
...
src/hb-uniscribe.cc
浏览文件 @
21646cc4
...
@@ -1025,8 +1025,6 @@ retry:
...
@@ -1025,8 +1025,6 @@ retry:
pos
->
x_advance
=
x_mult
*
(
int32_t
)
info
->
mask
;
pos
->
x_advance
=
x_mult
*
(
int32_t
)
info
->
mask
;
pos
->
x_offset
=
x_mult
*
(
backward
?
-
info
->
var1
.
i32
:
info
->
var1
.
i32
);
pos
->
x_offset
=
x_mult
*
(
backward
?
-
info
->
var1
.
i32
:
info
->
var1
.
i32
);
pos
->
y_offset
=
y_mult
*
info
->
var2
.
i32
;
pos
->
y_offset
=
y_mult
*
info
->
var2
.
i32
;
info
->
mask
=
HB_GLYPH_FLAG_UNSAFE_TO_BREAK
;
}
}
if
(
backward
)
if
(
backward
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录