Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
588a4ac8
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看板
提交
588a4ac8
编写于
10月 02, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename
上级
10b6c7c6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
49 addition
and
49 deletion
+49
-49
src/hb-ot-face.cc
src/hb-ot-face.cc
+10
-10
src/hb-ot-face.hh
src/hb-ot-face.hh
+39
-39
未找到文件。
src/hb-ot-face.cc
浏览文件 @
588a4ac8
...
...
@@ -40,19 +40,19 @@
void
hb_ot_face_data_t
::
init0
(
hb_face_t
*
face
)
{
this
->
face
=
face
;
#define HB_OT_
LAYOUT_
TABLE(Namespace, Type) Type.init0 ();
#define HB_OT_
LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOU
T_TABLE (Namespace, Type)
HB_OT_
LAYOUT_
TABLES
#undef HB_OT_
LAYOUT_
ACCELERATOR
#undef HB_OT_
LAYOUT_
TABLE
#define HB_OT_TABLE(Namespace, Type) Type.init0 ();
#define HB_OT_
ACCELERATOR(Namespace, Type) HB_O
T_TABLE (Namespace, Type)
HB_OT_TABLES
#undef HB_OT_ACCELERATOR
#undef HB_OT_TABLE
}
void
hb_ot_face_data_t
::
fini
(
void
)
{
#define HB_OT_
LAYOUT_
TABLE(Namespace, Type) Type.fini ();
#define HB_OT_
LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOU
T_TABLE (Namespace, Type)
HB_OT_
LAYOUT_
TABLES
#undef HB_OT_
LAYOUT_
ACCELERATOR
#undef HB_OT_
LAYOUT_
TABLE
#define HB_OT_TABLE(Namespace, Type) Type.fini ();
#define HB_OT_
ACCELERATOR(Namespace, Type) HB_O
T_TABLE (Namespace, Type)
HB_OT_TABLES
#undef HB_OT_ACCELERATOR
#undef HB_OT_TABLE
}
hb_ot_face_data_t
*
...
...
src/hb-ot-face.hh
浏览文件 @
588a4ac8
...
...
@@ -43,66 +43,66 @@
/* Most of these tables are NOT needed for shaping. But we need to hook them *somewhere*.
* This is as good as any place. */
#define HB_OT_
LAYOUT_
TABLES \
#define HB_OT_TABLES \
/* OpenType shaping. */
\
HB_OT_
LAYOUT_
TABLE(OT, JSTF) \
HB_OT_
LAYOUT_
TABLE(OT, BASE) \
HB_OT_TABLE(OT, JSTF) \
HB_OT_TABLE(OT, BASE) \
/* AAT shaping. */
\
HB_OT_
LAYOUT_
TABLE(AAT, morx) \
HB_OT_
LAYOUT_
TABLE(AAT, kerx) \
HB_OT_
LAYOUT_
TABLE(AAT, ankr) \
HB_OT_
LAYOUT_
TABLE(AAT, trak) \
HB_OT_TABLE(AAT, morx) \
HB_OT_TABLE(AAT, kerx) \
HB_OT_TABLE(AAT, ankr) \
HB_OT_TABLE(AAT, trak) \
/* OpenType variations. */
\
HB_OT_
LAYOUT_
TABLE(OT, fvar) \
HB_OT_
LAYOUT_
TABLE(OT, avar) \
HB_OT_
LAYOUT_
TABLE(OT, MVAR) \
HB_OT_TABLE(OT, fvar) \
HB_OT_TABLE(OT, avar) \
HB_OT_TABLE(OT, MVAR) \
/* OpenType math. */
\
HB_OT_
LAYOUT_
TABLE(OT, MATH) \
HB_OT_TABLE(OT, MATH) \
/* OpenType fundamentals. */
\
HB_OT_
LAYOUT_
ACCELERATOR(OT, GDEF) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, GSUB) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, GPOS) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, cmap) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, hmtx) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, vmtx) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, post) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, kern) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, glyf) \
HB_OT_
LAYOUT_
ACCELERATOR(OT, CBDT) \
HB_OT_ACCELERATOR(OT, GDEF) \
HB_OT_ACCELERATOR(OT, GSUB) \
HB_OT_ACCELERATOR(OT, GPOS) \
HB_OT_ACCELERATOR(OT, cmap) \
HB_OT_ACCELERATOR(OT, hmtx) \
HB_OT_ACCELERATOR(OT, vmtx) \
HB_OT_ACCELERATOR(OT, post) \
HB_OT_ACCELERATOR(OT, kern) \
HB_OT_ACCELERATOR(OT, glyf) \
HB_OT_ACCELERATOR(OT, CBDT) \
/* */
/* Declare tables. */
#define HB_OT_
LAYOUT_
TABLE(Namespace, Type) namespace Namespace { struct Type; }
#define HB_OT_
LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOU
T_TABLE (Namespace, Type##_accelerator_t)
HB_OT_
LAYOUT_
TABLES
#undef HB_OT_
LAYOUT_
ACCELERATOR
#undef HB_OT_
LAYOUT_
TABLE
#define HB_OT_TABLE(Namespace, Type) namespace Namespace { struct Type; }
#define HB_OT_
ACCELERATOR(Namespace, Type) HB_O
T_TABLE (Namespace, Type##_accelerator_t)
HB_OT_TABLES
#undef HB_OT_ACCELERATOR
#undef HB_OT_TABLE
struct
hb_ot_face_data_t
{
HB_INTERNAL
void
init0
(
hb_face_t
*
face
);
HB_INTERNAL
void
fini
(
void
);
#define HB_OT_
LAYOUT_
TABLE_ORDER(Namespace, Type) \
#define HB_OT_TABLE_ORDER(Namespace, Type) \
HB_PASTE (ORDER_, HB_PASTE (Namespace, HB_PASTE (_, Type)))
enum
order_t
{
ORDER_ZERO
,
#define HB_OT_
LAYOUT_TABLE(Namespace, Type) HB_OT_LAYOU
T_TABLE_ORDER (Namespace, Type),
#define HB_OT_
LAYOUT_ACCELERATOR(Namespace, Type) HB_OT_LAYOU
T_TABLE (Namespace, Type)
HB_OT_
LAYOUT_
TABLES
#undef HB_OT_
LAYOUT_
ACCELERATOR
#undef HB_OT_
LAYOUT_
TABLE
#define HB_OT_
TABLE(Namespace, Type) HB_O
T_TABLE_ORDER (Namespace, Type),
#define HB_OT_
ACCELERATOR(Namespace, Type) HB_O
T_TABLE (Namespace, Type)
HB_OT_TABLES
#undef HB_OT_ACCELERATOR
#undef HB_OT_TABLE
};
hb_face_t
*
face
;
/* MUST be JUST before the lazy loaders. */
#define HB_OT_
LAYOUT_
TABLE(Namespace, Type) \
hb_table_lazy_loader_t<Namespace::Type, HB_OT_
LAYOUT_
TABLE_ORDER (Namespace, Type)> Type;
#define HB_OT_
LAYOUT_
ACCELERATOR(Namespace, Type) \
hb_face_lazy_loader_t<Namespace::Type##_accelerator_t, HB_OT_
LAYOUT_
TABLE_ORDER (Namespace, Type)> Type;
HB_OT_
LAYOUT_
TABLES
#undef HB_OT_
LAYOUT_
ACCELERATOR
#undef HB_OT_
LAYOUT_
TABLE
#define HB_OT_TABLE(Namespace, Type) \
hb_table_lazy_loader_t<Namespace::Type, HB_OT_TABLE_ORDER (Namespace, Type)> Type;
#define HB_OT_ACCELERATOR(Namespace, Type) \
hb_face_lazy_loader_t<Namespace::Type##_accelerator_t, HB_OT_TABLE_ORDER (Namespace, Type)> Type;
HB_OT_TABLES
#undef HB_OT_ACCELERATOR
#undef HB_OT_TABLE
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录