Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
6186dbf1
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看板
提交
6186dbf1
编写于
11月 01, 2018
作者:
M
Michiharu Ariza
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added hb_subset_input_set_desubroutinize API
hooked up with CFF1 subroutinizer a renaming
上级
b1d0c589
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
23 addition
and
4 deletion
+23
-4
src/hb-subset-cff-common.hh
src/hb-subset-cff-common.hh
+1
-1
src/hb-subset-cff1.cc
src/hb-subset-cff1.cc
+2
-2
src/hb-subset-input.cc
src/hb-subset-input.cc
+13
-0
src/hb-subset.h
src/hb-subset.h
+5
-0
util/hb-subset.cc
util/hb-subset.cc
+1
-0
util/options.cc
util/options.cc
+1
-1
未找到文件。
src/hb-subset-cff-common.hh
浏览文件 @
6186dbf1
...
...
@@ -419,7 +419,7 @@ struct ParsedCStr : ParsedValues<ParsedCSOp>
SUPER
::
add_op
(
op
,
substr
);
}
inline
void
add
CallO
p
(
OpCode
op
,
const
SubByteStr
&
substr
,
unsigned
int
subr_num
)
inline
void
add
_call_o
p
(
OpCode
op
,
const
SubByteStr
&
substr
,
unsigned
int
subr_num
)
{
if
(
!
is_parsed
())
{
...
...
src/hb-subset-cff1.cc
浏览文件 @
6186dbf1
...
...
@@ -392,7 +392,7 @@ struct CFF1CSOpSet_SubrSubset : CFF1CSOpSet<CFF1CSOpSet_SubrSubset, SubrSubsetPa
{
SubByteStr
substr
=
env
.
substr
;
env
.
callSubr
(
subrs
,
type
);
param
.
current_parsed_str
->
add
CallO
p
(
op
,
substr
,
env
.
context
.
subr_num
);
param
.
current_parsed_str
->
add
_call_o
p
(
op
,
substr
,
env
.
context
.
subr_num
);
hb_set_add
(
closure
,
env
.
context
.
subr_num
);
param
.
set_current_str
(
env
);
}
...
...
@@ -592,7 +592,7 @@ struct cff_subset_plan {
num_glyphs
=
plan
->
glyphs
.
len
;
orig_fdcount
=
acc
.
fdCount
;
drop_hints
=
plan
->
drop_hints
;
desubroutinize
=
true
;
//
plan->desubroutinize;
desubroutinize
=
plan
->
desubroutinize
;
/* check whether the subset renumbers any glyph IDs */
gid_renum
=
false
;
...
...
src/hb-subset-input.cc
浏览文件 @
6186dbf1
...
...
@@ -131,3 +131,16 @@ hb_subset_input_get_drop_layout (hb_subset_input_t *subset_input)
{
return
subset_input
->
drop_layout
;
}
HB_EXTERN
void
hb_subset_input_set_desubroutinize
(
hb_subset_input_t
*
subset_input
,
hb_bool_t
desubroutinize
)
{
subset_input
->
desubroutinize
=
desubroutinize
;
}
HB_EXTERN
hb_bool_t
hb_subset_input_get_desubroutinize
(
hb_subset_input_t
*
subset_input
)
{
return
subset_input
->
desubroutinize
;
}
src/hb-subset.h
浏览文件 @
6186dbf1
...
...
@@ -66,6 +66,11 @@ hb_subset_input_set_drop_layout (hb_subset_input_t *subset_input,
HB_EXTERN
hb_bool_t
hb_subset_input_get_drop_layout
(
hb_subset_input_t
*
subset_input
);
HB_EXTERN
void
hb_subset_input_set_desubroutinize
(
hb_subset_input_t
*
subset_input
,
hb_bool_t
desubroutinize
);
HB_EXTERN
hb_bool_t
hb_subset_input_get_desubroutinize
(
hb_subset_input_t
*
subset_input
);
/* hb_subset() */
HB_EXTERN
hb_face_t
*
...
...
util/hb-subset.cc
浏览文件 @
6186dbf1
...
...
@@ -90,6 +90,7 @@ struct subset_consumer_t
void
finish
(
const
font_options_t
*
font_opts
)
{
hb_subset_input_set_drop_hints
(
input
,
subset_options
.
drop_hints
);
hb_subset_input_set_desubroutinize
(
input
,
subset_options
.
desubroutinize
);
hb_face_t
*
face
=
hb_font_get_face
(
font
);
...
...
util/options.cc
浏览文件 @
6186dbf1
...
...
@@ -970,7 +970,7 @@ subset_options_t::add_options (option_parser_t *parser)
GOptionEntry
entries
[]
=
{
{
"no-hinting"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
this
->
drop_hints
,
"Whether to drop hints"
,
nullptr
},
{
"desubroutinize"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
this
->
desubroutinize
,
"Remove CFF/CFF2 use of subroutin
iz
es"
,
nullptr
},
{
"desubroutinize"
,
0
,
0
,
G_OPTION_ARG_NONE
,
&
this
->
desubroutinize
,
"Remove CFF/CFF2 use of subroutines"
,
nullptr
},
{
nullptr
}
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录