Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
a5673da9
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看板
提交
a5673da9
编写于
6月 07, 2018
作者:
G
Garret Rieger
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[subset] Add drop_ot_layout setting to subset input.
上级
57badadb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
1 deletion
+25
-1
src/hb-subset-input.cc
src/hb-subset-input.cc
+17
-0
src/hb-subset-plan.cc
src/hb-subset-plan.cc
+1
-0
src/hb-subset-plan.hh
src/hb-subset-plan.hh
+1
-0
src/hb-subset-private.hh
src/hb-subset-private.hh
+1
-0
src/hb-subset.cc
src/hb-subset.cc
+2
-1
src/hb-subset.h
src/hb-subset.h
+3
-0
未找到文件。
src/hb-subset-input.cc
浏览文件 @
a5673da9
...
...
@@ -45,6 +45,7 @@ hb_subset_input_create_or_fail (void)
input
->
unicodes
=
hb_set_create
();
input
->
glyphs
=
hb_set_create
();
input
->
drop_ot_layout
=
true
;
return
input
;
}
...
...
@@ -117,3 +118,19 @@ hb_subset_input_drop_hints (hb_subset_input_t *subset_input)
{
return
&
subset_input
->
drop_hints
;
}
/**
* hb_subset_input_drop_ot_layout:
* @subset_input: a subset_input.
*
* If enabled ot layout tables will be dropped as part of
* the subsetting operation. Currently this defaults to
* true.
*
* Since: 1.8.0
**/
HB_EXTERN
hb_bool_t
*
hb_subset_input_drop_ot_layout
(
hb_subset_input_t
*
subset_input
)
{
return
&
subset_input
->
drop_ot_layout
;
}
src/hb-subset-plan.cc
浏览文件 @
a5673da9
...
...
@@ -131,6 +131,7 @@ hb_subset_plan_create (hb_face_t *face,
hb_subset_plan_t
*
plan
=
hb_object_create
<
hb_subset_plan_t
>
();
plan
->
drop_hints
=
input
->
drop_hints
;
plan
->
drop_ot_layout
=
input
->
drop_ot_layout
;
plan
->
unicodes
=
hb_set_create
();
plan
->
glyphs
.
init
();
plan
->
source
=
hb_face_reference
(
face
);
...
...
src/hb-subset-plan.hh
浏览文件 @
a5673da9
...
...
@@ -41,6 +41,7 @@ struct hb_subset_plan_t
ASSERT_POD
();
hb_bool_t
drop_hints
;
hb_bool_t
drop_ot_layout
;
// For each cp that we'd like to retain maps to the corresponding gid.
hb_set_t
*
unicodes
;
...
...
src/hb-subset-private.hh
浏览文件 @
a5673da9
...
...
@@ -44,6 +44,7 @@ struct hb_subset_input_t {
hb_set_t
*
glyphs
;
hb_bool_t
drop_hints
;
hb_bool_t
drop_ot_layout
;
/* TODO
*
* features
...
...
src/hb-subset.cc
浏览文件 @
a5673da9
...
...
@@ -302,10 +302,11 @@ _should_drop_table(hb_subset_plan_t *plan, hb_tag_t tag)
case
HB_TAG
(
'h'
,
'd'
,
'm'
,
'x'
):
/* hint table, fallthrough */
case
HB_TAG
(
'V'
,
'D'
,
'M'
,
'X'
):
/* hint table, fallthrough */
return
plan
->
drop_hints
;
// Drop Layout Tables
until subsetting is suppor
ted.
// Drop Layout Tables
if reques
ted.
case
HB_TAG
(
'G'
,
'D'
,
'E'
,
'F'
):
/* temporary */
case
HB_TAG
(
'G'
,
'P'
,
'O'
,
'S'
):
/* temporary */
case
HB_TAG
(
'G'
,
'S'
,
'U'
,
'B'
):
/* temporary */
return
plan
->
drop_ot_layout
;
// Drop these tables below by default, list pulled
// from fontTools:
case
HB_TAG
(
'B'
,
'A'
,
'S'
,
'E'
):
...
...
src/hb-subset.h
浏览文件 @
a5673da9
...
...
@@ -71,6 +71,9 @@ hb_subset_input_glyph_set (hb_subset_input_t *subset_input);
HB_EXTERN
hb_bool_t
*
hb_subset_input_drop_hints
(
hb_subset_input_t
*
subset_input
);
HB_EXTERN
hb_bool_t
*
hb_subset_input_drop_ot_layout
(
hb_subset_input_t
*
subset_input
);
/* hb_subset() */
HB_EXTERN
hb_face_t
*
hb_subset
(
hb_face_t
*
source
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录