Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
211da5ef
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
211da5ef
编写于
4月 11, 2018
作者:
E
Ebrahim Byagowi
提交者:
GitHub
4月 11, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[aat] Cosmetic changes (#964)
上级
f8bb582b
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
38 addition
and
36 deletion
+38
-36
src/hb-aat-gcid-table.hh
src/hb-aat-gcid-table.hh
+2
-2
src/hb-aat-layout-ankr-table.hh
src/hb-aat-layout-ankr-table.hh
+6
-5
src/hb-aat-layout-common-private.hh
src/hb-aat-layout-common-private.hh
+3
-3
src/hb-aat-layout-kerx-table.hh
src/hb-aat-layout-kerx-table.hh
+15
-14
src/hb-aat-layout-morx-table.hh
src/hb-aat-layout-morx-table.hh
+3
-3
src/hb-aat-layout-trak-table.hh
src/hb-aat-layout-trak-table.hh
+5
-5
src/hb-aat-ltag-table.hh
src/hb-aat-ltag-table.hh
+4
-4
未找到文件。
src/hb-aat-gcid-table.hh
浏览文件 @
211da5ef
...
...
@@ -52,10 +52,10 @@ struct gcid
HBUINT16
format
;
/* Data format (set to 0) */
HBUINT32
size
;
/* Size of the table, including header */
HBUINT16
registry
;
/* The registry ID */
uint8_t
registryName
[
64
];
HBUINT8
registryName
[
64
];
/* The registry name in ASCII */
HBUINT16
order
;
/* The order ID */
uint8_t
orderName
[
64
];
/* The order name in ASCII */
HBUINT8
orderName
[
64
];
/* The order name in ASCII */
HBUINT16
supplementVersion
;
/* The supplement version */
ArrayOf
<
HBUINT16
>
...
...
src/hb-aat-layout-ankr-table.hh
浏览文件 @
211da5ef
...
...
@@ -64,11 +64,12 @@ struct ankr
}
protected:
HBUINT16
version
;
/* Version number (set to zero) */
HBUINT16
flags
;
/* Flags (currently unused; set to zero) */
LOffsetTo
<
Lookup
<
HBUINT16
>
>
lookupTable
;
/* Offset to the table's lookup table */
LOffsetTo
<
ArrayOf
<
Anchor
,
HBUINT32
>
>
anchors
;
/* Offset to the glyph data table */
HBUINT16
version
;
/* Version number (set to zero) */
HBUINT16
flags
;
/* Flags (currently unused; set to zero) */
LOffsetTo
<
Lookup
<
HBUINT16
>
>
lookupTable
;
/* Offset to the table's lookup table */
LOffsetTo
<
LArrayOf
<
Anchor
>
>
anchors
;
/* Offset to the glyph data table */
public:
DEFINE_SIZE_STATIC
(
12
);
...
...
src/hb-aat-layout-common-private.hh
浏览文件 @
211da5ef
...
...
@@ -511,11 +511,11 @@ struct StateTable
protected:
HBUINT32
nClasses
;
/* Number of classes, which is the number of indices
* in a single line in the state array. */
OffsetTo
<
Lookup
<
HBUINT16
>
,
HBUINT32
>
LOffsetTo
<
Lookup
<
HBUINT16
>
>
classTable
;
/* Offset to the class table. */
OffsetTo
<
UnsizedArrayOf
<
HBUINT16
>
,
HBUINT32
>
LOffsetTo
<
UnsizedArrayOf
<
HBUINT16
>
>
stateArrayTable
;
/* Offset to the state array. */
OffsetTo
<
UnsizedArrayOf
<
Entry
<
Extra
>
>
,
HBUINT32
>
LOffsetTo
<
UnsizedArrayOf
<
Entry
<
Extra
>
>
>
entryTable
;
/* Offset to the entry array. */
public:
...
...
src/hb-aat-layout-kerx-table.hh
浏览文件 @
211da5ef
...
...
@@ -71,21 +71,22 @@ struct KerxSubTableFormat0
{
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
c
->
check_array
(
records
,
records
[
0
].
static_size
,
nPairs
));
recordsZ
.
sanitize
(
c
,
nPairs
));
}
protected:
// TODO(ebraminio): A custom version of "BinSearchArrayOf<KerxPair> pairs;" is
// needed here to use HBUINT32 instead
HBUINT32
nPairs
;
/* The number of kerning pairs in this subtable */
HBUINT32
searchRange
;
/* The largest power of two less than or equal to the value of nPairs,
* multiplied by the size in bytes of an entry in the subtable. */
HBUINT32
entrySelector
;
/* This is calculated as log2 of the largest power of two less
* than or equal to the value of nPairs. */
HBUINT32
rangeShift
;
/* The value of nPairs minus the largest power of two less than or equal to nPairs. */
KerxFormat0Records
records
[
VAR
];
/* VAR=nPairs */
HBUINT32
nPairs
;
/* The number of kerning pairs in this subtable */
HBUINT32
searchRange
;
/* The largest power of two less than or equal to the value of nPairs,
* multiplied by the size in bytes of an entry in the subtable. */
HBUINT32
entrySelector
;
/* This is calculated as log2 of the largest power of two less
* than or equal to the value of nPairs. */
HBUINT32
rangeShift
;
/* The value of nPairs minus the largest power of two less than or equal to nPairs. */
UnsizedArrayOf
<
KerxFormat0Records
>
recordsZ
;
/* VAR=nPairs */
public:
DEFINE_SIZE_ARRAY
(
16
,
records
);
DEFINE_SIZE_ARRAY
(
16
,
records
Z
);
};
struct
KerxSubTableFormat1
...
...
@@ -94,7 +95,7 @@ struct KerxSubTableFormat1
{
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
stateHeader
.
sanitize
(
c
));
stateHeader
.
sanitize
(
c
));
}
protected:
...
...
@@ -196,10 +197,10 @@ struct KerxSubTableFormat6
{
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
rowIndexTable
.
sanitize
(
c
,
this
)
&&
columnIndexTable
.
sanitize
(
c
,
this
)
&&
kerningArray
.
sanitize
(
c
,
this
)
&&
kerningVector
.
sanitize
(
c
,
this
));
rowIndexTable
.
sanitize
(
c
,
this
)
&&
columnIndexTable
.
sanitize
(
c
,
this
)
&&
kerningArray
.
sanitize
(
c
,
this
)
&&
kerningVector
.
sanitize
(
c
,
this
));
}
protected:
...
...
src/hb-aat-layout-morx-table.hh
浏览文件 @
211da5ef
...
...
@@ -462,11 +462,11 @@ struct LigatureSubtable
protected:
StateTable
<
EntryData
>
machine
;
OffsetTo
<
UnsizedArrayOf
<
HBUINT32
>
,
HBUINT32
>
LOffsetTo
<
UnsizedArrayOf
<
HBUINT32
>
>
ligAction
;
/* Offset to the ligature action table. */
OffsetTo
<
UnsizedArrayOf
<
HBUINT16
>
,
HBUINT32
>
LOffsetTo
<
UnsizedArrayOf
<
HBUINT16
>
>
component
;
/* Offset to the component table. */
OffsetTo
<
UnsizedArrayOf
<
GlyphID
>
,
HBUINT32
>
LOffsetTo
<
UnsizedArrayOf
<
GlyphID
>
>
ligature
;
/* Offset to the actual ligature lists. */
public:
DEFINE_SIZE_STATIC
(
28
);
...
...
src/hb-aat-layout-trak-table.hh
浏览文件 @
211da5ef
...
...
@@ -122,12 +122,12 @@ struct TrackData
}
protected:
HBUINT16
nTracks
;
/* Number of separate tracks included in this table. */
HBUINT16
nSizes
;
/* Number of point sizes included in this table. */
LOffsetTo
<
UnsizedArrayOf
<
Fixed
>
>
/* Offset to array[nSizes] of size values. */
sizeTable
;
HBUINT16
nTracks
;
/* Number of separate tracks included in this table. */
HBUINT16
nSizes
;
/* Number of point sizes included in this table. */
LOffsetTo
<
UnsizedArrayOf
<
Fixed
>
>
sizeTable
;
/* Offset to array[nSizes] of size values. */
UnsizedArrayOf
<
TrackTableEntry
>
trackTable
;
/* Array[nTracks] of TrackTableEntry records. */
trackTable
;
/* Array[nTracks] of TrackTableEntry records. */
public:
DEFINE_SIZE_ARRAY
(
8
,
trackTable
);
...
...
src/hb-aat-ltag-table.hh
浏览文件 @
211da5ef
...
...
@@ -37,14 +37,14 @@ struct FTStringRange
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
,
const
void
*
base
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
tag
(
base
).
sanitize
(
c
,
length
));
return_trace
(
c
->
check_struct
(
this
)
&&
(
base
+
tag
).
sanitize
(
c
,
length
));
}
protected:
OffsetTo
<
UnsizedArrayOf
<
HBUINT8
>
>
tag
;
/* Offset from the start of the table to
* the beginning of the string */
HBUINT16
length
;
/* String length (in bytes) */
tag
;
/* Offset from the start of the table to
* the beginning of the string */
HBUINT16
length
;
/* String length (in bytes) */
public:
DEFINE_SIZE_STATIC
(
4
);
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录