Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
816b8169
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
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看板
提交
816b8169
编写于
4月 23, 2018
作者:
E
Ebrahim Byagowi
提交者:
Behdad Esfahbod
4月 23, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Resolve some of clang's double-promotion warnings
上级
24b8b9b2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
src/hb-aat-layout-trak-table.hh
src/hb-aat-layout-trak-table.hh
+3
-3
src/hb-open-type-private.hh
src/hb-open-type-private.hh
+4
-4
src/hb-ot-layout-common-private.hh
src/hb-ot-layout-common-private.hh
+1
-1
未找到文件。
src/hb-aat-layout-trak-table.hh
浏览文件 @
816b8169
...
...
@@ -104,7 +104,7 @@ struct TrackData
const
TrackTableEntry
*
trackTableEntry
=
nullptr
;
for
(
unsigned
int
i
=
0
;
i
<
sizes
;
++
i
)
// For now we only seek for track entries with zero tracking value
if
(
trackTable
[
i
].
get_track_value
()
==
0.
)
if
(
trackTable
[
i
].
get_track_value
()
==
0.
f
)
trackTableEntry
=
&
trackTable
[
0
];
// We couldn't match any, exit
...
...
@@ -127,8 +127,8 @@ struct TrackData
float
s0
=
size_table
[
size_index
-
1
].
to_float
();
float
s1
=
size_table
[
size_index
].
to_float
();
float
t
=
(
csspx
-
s0
)
/
(
s1
-
s0
);
return
t
*
trackTableEntry
->
get_value
(
base
,
size_index
)
+
(
1.0
-
t
)
*
trackTableEntry
->
get_value
(
base
,
size_index
-
1
);
return
(
float
)
t
*
trackTableEntry
->
get_value
(
base
,
size_index
)
+
((
float
)
1.0
-
t
)
*
trackTableEntry
->
get_value
(
base
,
size_index
-
1
);
}
protected:
...
...
src/hb-open-type-private.hh
浏览文件 @
816b8169
...
...
@@ -684,8 +684,8 @@ typedef HBUINT16 UFWORD;
struct
F2DOT14
:
HBINT16
{
// 16384 means 1<<14
inline
float
to_float
(
void
)
const
{
return
((
int32_t
)
v
)
/
16384.
0
;
}
inline
void
set_float
(
float
f
)
{
v
.
set
(
round
(
f
*
16384.
0
));
}
inline
float
to_float
(
void
)
const
{
return
((
int32_t
)
v
)
/
16384.
f
;
}
inline
void
set_float
(
float
f
)
{
v
.
set
(
round
(
f
*
16384.
f
));
}
public:
DEFINE_SIZE_STATIC
(
2
);
};
...
...
@@ -694,8 +694,8 @@ struct F2DOT14 : HBINT16
struct
Fixed
:
HBINT32
{
// 65536 means 1<<16
inline
float
to_float
(
void
)
const
{
return
((
int32_t
)
v
)
/
65536.
0
;
}
inline
void
set_float
(
float
f
)
{
v
.
set
(
round
(
f
*
65536.
0
));
}
inline
float
to_float
(
void
)
const
{
return
((
int32_t
)
v
)
/
65536.
f
;
}
inline
void
set_float
(
float
f
)
{
v
.
set
(
round
(
f
*
65536.
f
));
}
public:
DEFINE_SIZE_STATIC
(
4
);
};
...
...
src/hb-ot-layout-common-private.hh
浏览文件 @
816b8169
...
...
@@ -1280,7 +1280,7 @@ struct VarRegionList
{
int
coord
=
i
<
coord_len
?
coords
[
i
]
:
0
;
float
factor
=
axes
[
i
].
evaluate
(
coord
);
if
(
factor
==
0.
)
if
(
factor
==
0.
f
)
return
0.
;
v
*=
factor
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录