Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
5de2d9cd
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看板
未验证
提交
5de2d9cd
编写于
10月 04, 2018
作者:
E
Ebrahim Byagowi
提交者:
GitHub
10月 04, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor, fix double-promotion warnings (#1221)
上级
c2c7e647
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
4 deletion
+4
-4
.circleci/config.yml
.circleci/config.yml
+1
-1
src/dump-emoji.cc
src/dump-emoji.cc
+1
-1
src/hb-common.cc
src/hb-common.cc
+1
-1
src/hb-ot-var-fvar-table.hh
src/hb-ot-var-fvar-table.hh
+1
-1
未找到文件。
.circleci/config.yml
浏览文件 @
5de2d9cd
...
@@ -91,7 +91,7 @@ jobs:
...
@@ -91,7 +91,7 @@ jobs:
-
run
:
apt update ||
true
-
run
:
apt update ||
true
-
run
:
apt install -y clang lld binutils libtool autoconf automake make pkg-config gtk-doc-tools ragel libfreetype6-dev libfontconfig1-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
-
run
:
apt install -y clang lld binutils libtool autoconf automake make pkg-config gtk-doc-tools ragel libfreetype6-dev libfontconfig1-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
-
run
:
pip install fonttools
-
run
:
pip install fonttools
-
run
:
CFLAGS="-Weverything -Wno-reserved-id-macro -Wno-conversion -Wno-padded -Wno-sign-conversion -Wno-cast-qual -Wno-documentation -Wno-documentation-unknown-command" CXXFLAGS="-Weverything -Wno-old-style-cast -Wno-documentation -Wno-documentation-unknown-command -Wno-c++98-compat -Wno-cast-qual -Wno-c++98-compat-pedantic -Wno-sign-conversion -Wno-padded -Wno-shorten-64-to-32 -Wno-extra-semi -Wno-reserved-id-macro -Wno-float-conversion -Wno-format-pedantic -Wno-shadow -Wno-conversion -Wno-zero-as-null-pointer-constant -Wno-missing-field-initializers -Wno-
double-promotion -Wno-
used-but-marked-unused -Wno-unused-macros -Wno-comma -Wno-float-equal -Wno-disabled-macro-expansion -Wno-weak-vtables -Wno-unused-parameter -Wno-covered-switch-default -Wno-unreachable-code" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2 --with-fontconfig
-
run
:
CFLAGS="-Weverything -Wno-reserved-id-macro -Wno-conversion -Wno-padded -Wno-sign-conversion -Wno-cast-qual -Wno-documentation -Wno-documentation-unknown-command" CXXFLAGS="-Weverything -Wno-old-style-cast -Wno-documentation -Wno-documentation-unknown-command -Wno-c++98-compat -Wno-cast-qual -Wno-c++98-compat-pedantic -Wno-sign-conversion -Wno-padded -Wno-shorten-64-to-32 -Wno-extra-semi -Wno-reserved-id-macro -Wno-float-conversion -Wno-format-pedantic -Wno-shadow -Wno-conversion -Wno-zero-as-null-pointer-constant -Wno-missing-field-initializers -Wno-used-but-marked-unused -Wno-unused-macros -Wno-comma -Wno-float-equal -Wno-disabled-macro-expansion -Wno-weak-vtables -Wno-unused-parameter -Wno-covered-switch-default -Wno-unreachable-code" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2 --with-fontconfig
-
run
:
make -j32 CPPFLAGS="-Werror"
-
run
:
make -j32 CPPFLAGS="-Werror"
-
run
:
make check CPPFLAGS="-Werror" || .ci/fail.sh
-
run
:
make check CPPFLAGS="-Werror" || .ci/fail.sh
...
...
src/dump-emoji.cc
浏览文件 @
5de2d9cd
...
@@ -146,7 +146,7 @@ static void colr_cpal_rendering (cairo_font_face_t *cairo_face, unsigned int upe
...
@@ -146,7 +146,7 @@ static void colr_cpal_rendering (cairo_font_face_t *cairo_face, unsigned int upe
int
r
=
(
color
>>
8
)
&
0xFF
;
int
r
=
(
color
>>
8
)
&
0xFF
;
int
g
=
(
color
>>
16
)
&
0xFF
;
int
g
=
(
color
>>
16
)
&
0xFF
;
int
b
=
(
color
>>
24
)
&
0xFF
;
int
b
=
(
color
>>
24
)
&
0xFF
;
cairo_set_source_rgba
(
cr
,
r
/
255.
f
,
g
/
255.
f
,
b
/
255.
f
,
alpha
);
cairo_set_source_rgba
(
cr
,
r
/
255.
,
g
/
255.
,
b
/
255.
,
alpha
);
cairo_glyph_t
glyph
;
cairo_glyph_t
glyph
;
glyph
.
index
=
glyph_id
;
glyph
.
index
=
glyph_id
;
...
...
src/hb-common.cc
浏览文件 @
5de2d9cd
...
@@ -1072,7 +1072,7 @@ hb_variation_to_string (hb_variation_t *variation,
...
@@ -1072,7 +1072,7 @@ hb_variation_to_string (hb_variation_t *variation,
while
(
len
&&
s
[
len
-
1
]
==
' '
)
while
(
len
&&
s
[
len
-
1
]
==
' '
)
len
--
;
len
--
;
s
[
len
++
]
=
'='
;
s
[
len
++
]
=
'='
;
len
+=
MAX
(
0
,
snprintf
(
s
+
len
,
ARRAY_LENGTH
(
s
)
-
len
,
"%g"
,
variation
->
value
));
len
+=
MAX
(
0
,
snprintf
(
s
+
len
,
ARRAY_LENGTH
(
s
)
-
len
,
"%g"
,
(
double
)
variation
->
value
));
assert
(
len
<
ARRAY_LENGTH
(
s
));
assert
(
len
<
ARRAY_LENGTH
(
s
));
len
=
MIN
(
len
,
size
-
1
);
len
=
MIN
(
len
,
size
-
1
);
...
...
src/hb-ot-var-fvar-table.hh
浏览文件 @
5de2d9cd
...
@@ -177,7 +177,7 @@ struct fvar
...
@@ -177,7 +177,7 @@ struct fvar
v
=
(
v
-
axis
.
default_value
)
/
(
axis
.
default_value
-
axis
.
min_value
);
v
=
(
v
-
axis
.
default_value
)
/
(
axis
.
default_value
-
axis
.
min_value
);
else
else
v
=
(
v
-
axis
.
default_value
)
/
(
axis
.
max_value
-
axis
.
default_value
);
v
=
(
v
-
axis
.
default_value
)
/
(
axis
.
max_value
-
axis
.
default_value
);
return
(
int
)
(
v
*
16384.
+
(
v
>=
0.
?
.5
:
-
.5
));
return
(
int
)
(
v
*
16384.
f
+
(
v
>=
0.
f
?
.5
f
:
-
.5
f
));
}
}
protected:
protected:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录