Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
f131f00b
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看板
提交
f131f00b
编写于
2月 19, 2017
作者:
E
Elie Roux
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
compile, move into hb-ot-layout.cc
上级
d0b97353
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
43 addition
and
16 deletion
+43
-16
src/hb-ot-font.cc
src/hb-ot-font.cc
+0
-1
src/hb-ot-layout-base-table.hh
src/hb-ot-layout-base-table.hh
+42
-15
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+1
-0
未找到文件。
src/hb-ot-font.cc
浏览文件 @
f131f00b
...
...
@@ -30,7 +30,6 @@
#include "hb-font-private.hh"
#include "hb-ot-layout-base-table.hh"
#include "hb-ot-cmap-table.hh"
#include "hb-ot-cbdt-table.hh"
#include "hb-ot-glyf-table.hh"
...
...
src/hb-ot-layout-base-table.hh
浏览文件 @
f131f00b
...
...
@@ -109,7 +109,7 @@ struct MinMaxTable {
ArrayOf
<
FeatMinMaxRecord
>
featMinMaxRecordTable
;
public:
DEFINE_SIZE_ARRAY
(
6
,
featMinMaxRecordTable
);
DEFINE_SIZE_ARRAY
(
8
,
featMinMaxRecordTable
);
};
...
...
@@ -127,10 +127,10 @@ struct BaseValuesTable {
protected:
USHORT
defaultIndex
;
USHORT
baseCoordCount
;
ArrayOf
<
BaseCoord
>
baseCoordTable
;
Offset
ArrayOf
<
BaseCoord
>
baseCoordTable
;
public:
DEFINE_SIZE_ARRAY
(
4
,
baseCoordTable
);
DEFINE_SIZE_ARRAY
(
6
,
baseCoordTable
);
};
...
...
@@ -142,7 +142,7 @@ struct BaseScriptTable {
ArrayOf
<
BaseLangSysRecord
>
baseLangSysRecordTable
;
public:
DEFINE_SIZE_ARRAY
(
6
,
baseLangSysRecordTable
);
DEFINE_SIZE_ARRAY
(
8
,
baseLangSysRecordTable
);
};
...
...
@@ -153,7 +153,7 @@ struct BaseScriptRecord {
OffsetTo
<
BaseScriptTable
>
baseScript
;
public:
DEFINE_SIZE_STATIC
(
4
);
DEFINE_SIZE_STATIC
(
6
);
};
struct
BaseScriptList
{
...
...
@@ -163,7 +163,7 @@ struct BaseScriptList {
ArrayOf
<
BaseScriptRecord
>
baseScriptRecordTable
;
public:
DEFINE_SIZE_ARRAY
(
2
,
baseScriptRecordTable
);
DEFINE_SIZE_ARRAY
(
4
,
baseScriptRecordTable
);
};
...
...
@@ -182,10 +182,10 @@ struct BaseTagList
protected:
USHORT
baseTagCount
;
ArrayOf
<
BaselineTag
>
B
aseTagListTable
;
ArrayOf
<
BaselineTag
>
b
aseTagListTable
;
public:
DEFINE_SIZE_
STATIC
(
4
);
DEFINE_SIZE_
ARRAY
(
4
,
baseTagListTable
);
};
struct
VertAxis
...
...
@@ -210,6 +210,32 @@ struct HorizAxis
DEFINE_SIZE_STATIC
(
4
);
};
struct
BASEFormat1_1
{
protected:
FixedVersion
<>
version
;
OffsetTo
<
HorizAxis
>
horizAxis
;
OffsetTo
<
VertAxis
>
vertAxis
;
LOffsetTo
<
VariationStore
>
itemVarStore
;
public:
DEFINE_SIZE_STATIC
(
12
);
};
struct
BASEFormat1_0
{
protected:
FixedVersion
<>
version
;
OffsetTo
<
HorizAxis
>
horizAxis
;
OffsetTo
<
VertAxis
>
vertAxis
;
public:
DEFINE_SIZE_STATIC
(
8
);
};
struct
BASE
{
static
const
hb_tag_t
tableTag
=
HB_OT_TAG_BASE
;
...
...
@@ -217,18 +243,19 @@ struct BASE
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
version
.
sanitize
(
c
)
&&
likely
(
version
.
major
==
1
));
return_trace
(
u
.
version
.
sanitize
(
c
)
&&
likely
(
u
.
version
.
major
==
1
));
}
protected:
FixedVersion
<>
version
;
/* Version of the BASE table: 1.0 or 1.1 */
OffsetTo
<
HorizAxis
>
horizAxis
;
OffsetTo
<
VertAxis
>
vertAxis
;
//LOffsetTo<ItemVarStore> itemVarStore;
union
{
FixedVersion
<>
version
;
/* Version of the BASE table: 1.0 or 1.1 */
BASEFormat1_0
format1_0
;
BASEFormat1_1
format1_1
;
}
u
;
public:
DEFINE_SIZE_
MIN
(
6
);
DEFINE_SIZE_
UNION
(
4
,
version
);
};
...
...
src/hb-ot-layout.cc
浏览文件 @
f131f00b
...
...
@@ -31,6 +31,7 @@
#include "hb-open-type-private.hh"
#include "hb-ot-layout-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"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录