Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
203dc44e
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看板
提交
203dc44e
编写于
5月 03, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ot-layout] Remove unused members
We should hang those off somewhere else. For now, the unused ones can go.
上级
ac92ed7d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
28 deletion
+15
-28
src/hb-aat-layout-common-private.hh
src/hb-aat-layout-common-private.hh
+1
-1
src/hb-aat-layout.cc
src/hb-aat-layout.cc
+6
-0
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+0
-6
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+8
-21
未找到文件。
src/hb-aat-layout-common-private.hh
浏览文件 @
203dc44e
...
...
@@ -134,7 +134,7 @@ struct BinSearchArrayOf
protected:
BinSearchHeader
header
;
HBUINT8
bytes
[
VAR
];
HBUINT8
bytes
[
VAR
];
public:
DEFINE_SIZE_ARRAY
(
10
,
bytes
);
};
...
...
src/hb-aat-layout.cc
浏览文件 @
203dc44e
...
...
@@ -44,6 +44,7 @@
* morx/kerx/trak
*/
#if 0
static inline const AAT::ankr&
_get_ankr (hb_face_t *face, hb_blob_t **blob = nullptr)
{
...
...
@@ -109,6 +110,7 @@ _get_trak (hb_face_t *face, hb_blob_t **blob = nullptr)
*blob = layout->trak.blob;
return trak;
}
#endif
// static inline void
// _hb_aat_layout_create (hb_face_t *face)
...
...
@@ -127,16 +129,19 @@ _get_trak (hb_face_t *face, hb_blob_t **blob = nullptr)
void
hb_aat_layout_substitute
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
{
#if 0
hb_blob_t *blob;
const AAT::morx& morx = _get_morx (font->face, &blob);
AAT::hb_aat_apply_context_t c (font, buffer, blob);
morx.apply (&c);
#endif
}
void
hb_aat_layout_position
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
{
#if 0
hb_blob_t *blob;
const AAT::ankr& ankr = _get_ankr (font->face, &blob);
const AAT::kerx& kerx = _get_kerx (font->face, &blob);
...
...
@@ -145,4 +150,5 @@ hb_aat_layout_position (hb_font_t *font, hb_buffer_t *buffer)
AAT::hb_aat_apply_context_t c (font, buffer, blob);
kerx.apply (&c, &ankr);
trak.apply (&c);
#endif
}
src/hb-ot-layout-private.hh
浏览文件 @
203dc44e
...
...
@@ -173,15 +173,9 @@ struct hb_ot_layout_t
/* TODO Move the following out of this struct. */
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
BASE
>
base
;
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
COLR
>
colr
;
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
CPAL
>
cpal
;
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
MATH
>
math
;
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
fvar
>
fvar
;
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
avar
>
avar
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
ankr
>
ankr
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
kerx
>
kerx
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
morx
>
morx
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
trak
>
trak
;
unsigned
int
gsub_lookup_count
;
unsigned
int
gpos_lookup_count
;
...
...
src/hb-ot-layout.cc
浏览文件 @
203dc44e
...
...
@@ -30,19 +30,20 @@
#include "hb-open-type-private.hh"
#include "hb-ot-layout-private.hh"
#include "hb-ot-map-private.hh"
#include "hb-ot-layout-base-table.hh"
#include "hb-ot-layout-gdef-table.hh"
#include "hb-ot-layout-gsub-table.hh"
#include "hb-ot-layout-gpos-table.hh"
#include "hb-ot-layout-jstf-table.hh" // Just so we compile it; unused otherwise.
#include "hb-ot-name-table.hh" // Just so we compile it; unused otherwise.
// Just so we compile them; unused otherwise:
#include "hb-ot-layout-base-table.hh"
#include "hb-ot-layout-jstf-table.hh"
#include "hb-ot-color-colr-table.hh"
#include "hb-ot-color-cpal-table.hh"
#include "hb-ot-color-sbix-table.hh" // Just so we compile it; unused otherwise.
#include "hb-ot-color-svg-table.hh" // Just so we compile it; unused otherwise.
#include "hb-ot-map-private.hh"
#include "hb-ot-color-sbix-table.hh"
#include "hb-ot-color-svg-table.hh"
#include "hb-ot-name-table.hh"
#ifndef HB_NO_VISIBILITY
...
...
@@ -66,16 +67,9 @@ _hb_ot_layout_create (hb_face_t *face)
layout
->
gpos_blob
=
OT
::
Sanitizer
<
OT
::
GPOS
>
().
sanitize
(
face
->
reference_table
(
HB_OT_TAG_GPOS
));
layout
->
gpos
=
OT
::
Sanitizer
<
OT
::
GPOS
>::
lock_instance
(
layout
->
gpos_blob
);
layout
->
base
.
init
(
face
);
layout
->
colr
.
init
(
face
);
layout
->
cpal
.
init
(
face
);
layout
->
math
.
init
(
face
);
layout
->
fvar
.
init
(
face
);
layout
->
avar
.
init
(
face
);
layout
->
ankr
.
init
(
face
);
layout
->
kerx
.
init
(
face
);
layout
->
morx
.
init
(
face
);
layout
->
trak
.
init
(
face
);
{
/*
...
...
@@ -222,16 +216,9 @@ _hb_ot_layout_destroy (hb_ot_layout_t *layout)
hb_blob_destroy
(
layout
->
gsub_blob
);
hb_blob_destroy
(
layout
->
gpos_blob
);
layout
->
base
.
fini
();
layout
->
colr
.
fini
();
layout
->
cpal
.
fini
();
layout
->
math
.
fini
();
layout
->
fvar
.
fini
();
layout
->
avar
.
fini
();
layout
->
ankr
.
fini
();
layout
->
kerx
.
fini
();
layout
->
morx
.
fini
();
layout
->
trak
.
fini
();
free
(
layout
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录