Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
fc1e82a5
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,发现更多精彩内容 >>
未验证
提交
fc1e82a5
编写于
2月 05, 2018
作者:
G
Garret Rieger
提交者:
GitHub
2月 05, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #754 from googlefonts/master
Fix build for subsetting code.
上级
ae39fc81
2ea22893
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
9 deletion
+9
-9
test/api/Makefile.am
test/api/Makefile.am
+1
-1
util/Makefile.am
util/Makefile.am
+1
-2
util/Makefile.sources
util/Makefile.sources
+1
-1
util/hb-subset.cc
util/hb-subset.cc
+6
-5
未找到文件。
test/api/Makefile.am
浏览文件 @
fc1e82a5
...
...
@@ -14,7 +14,7 @@ EXTRA_DIST += CMakeLists.txt
if
HAVE_GLIB
AM_CPPFLAGS
=
-DSRCDIR
=
"
\"
$(srcdir)
\"
"
-I
$(top_srcdir)
/src/
-I
$(top_builddir)
/src/
$(GLIB_CFLAGS)
LDADD
=
$(top_builddir)
/src/libharfbuzz.la
$(GLIB_LIBS)
LDADD
=
$(top_builddir)
/src/libharfbuzz.la
$(
top_builddir)
/src/libharfbuzz-subset.la
$(
GLIB_LIBS)
EXTRA_DIST
+=
hb-test.h
...
...
util/Makefile.am
浏览文件 @
fc1e82a5
...
...
@@ -46,8 +46,7 @@ endif # HAVE_FREETYPE
hb_shape_SOURCES
=
$(HB_SHAPE_sources)
bin_PROGRAMS
+=
hb-shape
hb_subset_SOURCES
=
$(HB_SUBSET_sources)
hb_subset_SOURCES
=
$(HB_SUBSET_sources)
hb_subset_SOURCES
=
$(HB_SUBSET_CLI_sources)
hb_subset_LDADD
=
$(LDADD)
$(top_builddir)
/src/libharfbuzz-subset.la
bin_PROGRAMS
+=
hb-subset
...
...
util/Makefile.sources
浏览文件 @
fc1e82a5
...
...
@@ -29,7 +29,7 @@ HB_OT_SHAPE_CLOSURE_sources = \
main-font-text.hh
\
$(NULL)
HB_SUBSET_sources
=
\
HB_SUBSET_
CLI_
sources
=
\
hb-subset.cc
\
options.cc
\
options.hh
\
...
...
util/hb-subset.cc
浏览文件 @
fc1e82a5
...
...
@@ -25,7 +25,7 @@
* Google Author(s): Garret Rieger, Rod Sheeter
*/
#include <
unistd
.h>
#include <
stdio
.h>
#include "main-font-text.hh"
#include "hb-subset.h"
...
...
@@ -57,12 +57,13 @@ struct subset_consumer_t
unsigned
int
data_length
;
const
char
*
data
=
hb_blob_get_data
(
blob
,
&
data_length
);
int
fd_out
=
open
(
output_file
,
O_CREAT
|
O_WRONLY
,
S_IRWXU
);
if
(
f
d_out
==
-
1
)
{
fprintf
(
stderr
,
"Unable to open output file"
);
FILE
*
fp_out
=
fopen
(
output_file
,
"w"
);
if
(
f
p_out
==
nullptr
)
{
fprintf
(
stderr
,
"Unable to open output file
\n
"
);
return
false
;
}
ssize_t
bytes_written
=
write
(
fd_out
,
data
,
data_length
);
size_t
bytes_written
=
fwrite
(
data
,
1
,
data_length
,
fp_out
);
if
(
bytes_written
==
-
1
)
{
fprintf
(
stderr
,
"Unable to write output file
\n
"
);
return
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录