Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
30874b48
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看板
提交
30874b48
编写于
5月 12, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[util] Make tools default to stdin if no text is provided
One less argument to type in typical testing workflow!
上级
20979511
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
9 deletion
+9
-9
util/hb-view.hh
util/hb-view.hh
+3
-1
util/options.cc
util/options.cc
+5
-7
util/options.hh
util/options.hh
+1
-1
未找到文件。
util/hb-view.hh
浏览文件 @
30874b48
...
...
@@ -50,8 +50,10 @@ struct hb_view_t
if
(
argc
&&
!
input
.
text
&&
!
input
.
text_file
)
input
.
text
=
argv
[
0
],
argc
--
,
argv
++
;
if
(
argc
)
fail
(
TRUE
,
"Too many arguments on the command line"
);
if
(
!
font_opts
.
font_file
||
(
!
input
.
text
&&
!
input
.
text_file
)
)
if
(
!
font_opts
.
font_file
)
options
.
usage
();
if
(
!
input
.
text
&&
!
input
.
text_file
)
input
.
text_file
=
"-"
;
output
.
init
(
&
font_opts
);
...
...
util/options.cc
浏览文件 @
30874b48
...
...
@@ -376,7 +376,7 @@ view_options_t::add_options (option_parser_t *parser)
parser
->
add_group
(
entries
,
"view"
,
"View options:"
,
"Options controlling
the
output rendering"
,
"Options controlling output rendering"
,
this
);
}
...
...
@@ -391,7 +391,7 @@ shape_options_t::add_options (option_parser_t *parser)
{
"direction"
,
0
,
0
,
G_OPTION_ARG_STRING
,
&
this
->
direction
,
"Set text direction (default: auto)"
,
"ltr/rtl/ttb/btt"
},
{
"language"
,
0
,
0
,
G_OPTION_ARG_STRING
,
&
this
->
language
,
"Set text language (default: $LANG)"
,
"langstr"
},
{
"script"
,
0
,
0
,
G_OPTION_ARG_STRING
,
&
this
->
script
,
"Set text script (default: auto)"
,
"ISO-15924 tag"
},
{
"utf8-clusters"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
this
->
utf8_clusters
,
"Use UTF
-
8 byte indices, not char indices"
,
NULL
},
{
"utf8-clusters"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
this
->
utf8_clusters
,
"Use UTF8 byte indices, not char indices"
,
NULL
},
{
NULL
}
};
parser
->
add_group
(
entries
,
...
...
@@ -400,9 +400,7 @@ shape_options_t::add_options (option_parser_t *parser)
"Options controlling the shaping process"
,
this
);
const
gchar
*
features_help
=
"
\n
"
"
\n
"
" Comma-separated list of font features to apply to text
\n
"
const
gchar
*
features_help
=
"Comma-separated list of font features
\n
"
"
\n
"
" Features can be enabled or disabled, either globally or limited to
\n
"
" specific character ranges.
\n
"
...
...
@@ -444,7 +442,7 @@ shape_options_t::add_options (option_parser_t *parser)
parser
->
add_group
(
entries2
,
"features"
,
"Features options:"
,
"Options controlling
the OpenType font features appli
ed"
,
"Options controlling
font features us
ed"
,
this
);
}
...
...
@@ -470,7 +468,7 @@ text_options_t::add_options (option_parser_t *parser)
GOptionEntry
entries
[]
=
{
{
"text"
,
0
,
0
,
G_OPTION_ARG_STRING
,
&
this
->
text
,
"Set input text"
,
"string"
},
{
"text-file"
,
0
,
0
,
G_OPTION_ARG_STRING
,
&
this
->
text_file
,
"Set input text file-name"
,
"filename"
},
{
"text-file"
,
0
,
0
,
G_OPTION_ARG_STRING
,
&
this
->
text_file
,
"Set input text file-name
\n\n
If no text is provided, standard input is used for input.
"
,
"filename"
},
{
NULL
}
};
parser
->
add_group
(
entries
,
...
...
util/options.hh
浏览文件 @
30874b48
...
...
@@ -239,7 +239,7 @@ struct text_options_t : option_group_t
if
(
text
&&
text_file
)
g_set_error
(
error
,
G_OPTION_ERROR
,
G_OPTION_ERROR_BAD_VALUE
,
"Only one of text and text-file
must
be set"
);
"Only one of text and text-file
can
be set"
);
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录