Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
7c7cb42d
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看板
提交
7c7cb42d
编写于
1月 08, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[aat] Update previous commits for rebase on master
上级
a0175e75
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
26 deletion
+21
-26
src/hb-aat-layout-common-private.hh
src/hb-aat-layout-common-private.hh
+7
-7
src/hb-aat-layout-morx-table.hh
src/hb-aat-layout-morx-table.hh
+14
-14
src/hb-open-type-private.hh
src/hb-open-type-private.hh
+0
-5
未找到文件。
src/hb-aat-layout-common-private.hh
浏览文件 @
7c7cb42d
...
...
@@ -50,13 +50,13 @@ struct BinSearchHeader
}
protected:
U
SHORT
unitSize
;
/* Size of a lookup unit for this search in bytes. */
U
SHORT
nUnits
;
/* Number of units of the preceding size to be searched. */
U
SHORT
searchRange
;
/* The value of unitSize times the largest power of 2
U
INT16
unitSize
;
/* Size of a lookup unit for this search in bytes. */
U
INT16
nUnits
;
/* Number of units of the preceding size to be searched. */
U
INT16
searchRange
;
/* The value of unitSize times the largest power of 2
* that is less than or equal to the value of nUnits. */
U
SHORT
entrySelector
;
/* The log base 2 of the largest power of 2 less than
U
INT16
entrySelector
;
/* The log base 2 of the largest power of 2 less than
* or equal to the value of nUnits. */
U
SHORT
rangeShift
;
/* The value of unitSize times the difference of the
U
INT16
rangeShift
;
/* The value of unitSize times the difference of the
* value of nUnits minus the largest power of 2 less
* than or equal to the value of nUnits. */
public:
...
...
@@ -108,7 +108,7 @@ struct BinSearchArrayOf
template
<
typename
T
>
inline
Type
*
bsearch
(
const
T
&
key
)
const
{
return
::
bsearch
(
&
key
,
bytes
,
header
.
nUnits
,
header
.
unitSize
,
(
hb_compare_func_t
)
Type
::
cmp
);
return
::
bsearch
(
&
key
,
bytes
,
header
.
nUnits
,
header
.
unitSize
,
Type
::
cmp
);
}
private:
...
...
@@ -122,7 +122,7 @@ struct BinSearchArrayOf
protected:
BinSearchHeader
header
;
BYTE
bytes
[
VAR
];
UINT8
bytes
[
VAR
];
public:
DEFINE_SIZE_ARRAY
(
10
,
bytes
);
};
...
...
src/hb-aat-layout-morx-table.hh
浏览文件 @
7c7cb42d
...
...
@@ -104,11 +104,11 @@ struct Feature
}
public:
U
SHORT
featureType
;
/* The type of feature. */
U
SHORT
featureSetting
;
/* The feature's setting (aka selector). */
U
LONG
enableFlags
;
/* Flags for the settings that this feature
U
INT16
featureType
;
/* The type of feature. */
U
INT16
featureSetting
;
/* The feature's setting (aka selector). */
U
INT32
enableFlags
;
/* Flags for the settings that this feature
* and setting enables. */
U
LONG
disableFlags
;
/* Complement of flags for the settings that this
U
INT32
disableFlags
;
/* Complement of flags for the settings that this
* feature and setting disable. */
public:
...
...
@@ -160,9 +160,9 @@ struct ChainSubtable
}
protected:
UINT
length
;
/* Total subtable length, including this header. */
UINT
coverage
;
/* Coverage flags and subtable type. */
U
LONG
subFeatureFlags
;
/* The 32-bit mask identifying which subtable this is. */
UINT
length
;
/* Total subtable length, including this header. */
UINT
coverage
;
/* Coverage flags and subtable type. */
U
INT32
subFeatureFlags
;
/* The 32-bit mask identifying which subtable this is. */
union
{
RearrangementSubtable
rearrangement
;
ContextualSubtable
contextual
;
...
...
@@ -204,10 +204,10 @@ struct Chain
}
protected:
U
LONG
defaultFlags
;
/* The default specification for subtables. */
U
LONG
length
;
/* Total byte count, including this header. */
UINT
featureCount
;
/* Number of feature subtable entries. */
UINT
subtableCount
;
/* The number of subtables in the chain. */
U
INT32
defaultFlags
;
/* The default specification for subtables. */
U
INT32
length
;
/* Total byte count, including this header. */
UINT
featureCount
;
/* Number of feature subtable entries. */
UINT
subtableCount
;
/* The number of subtables in the chain. */
Feature
featureZ
[
VAR
];
/* Features. */
ChainSubtable
<
UINT
>
subtableX
[
VAR
];
/* Subtables. */
...
...
@@ -251,7 +251,7 @@ struct mortmorx
protected:
FixedVersion
<>
version
;
/* Version number of the glyph metamorphosis table.
* 1 for mort, 2 or 3 for morx. */
U
LONG
chainCount
;
/* Number of metamorphosis chains contained in this
U
INT32
chainCount
;
/* Number of metamorphosis chains contained in this
* table. */
Chain
<
UINT
>
chains
[
VAR
];
/* Chains. */
...
...
@@ -259,12 +259,12 @@ struct mortmorx
DEFINE_SIZE_MIN
(
8
);
};
struct
mort
:
mortmorx
<
U
SHORT
>
struct
mort
:
mortmorx
<
U
INT16
>
{
static
const
hb_tag_t
tableTag
=
HB_AAT_TAG_MORT
;
};
struct
morx
:
mortmorx
<
U
LONG
>
struct
morx
:
mortmorx
<
U
INT32
>
{
static
const
hb_tag_t
tableTag
=
HB_AAT_TAG_MORX
;
};
...
...
src/hb-open-type-private.hh
浏览文件 @
7c7cb42d
...
...
@@ -160,11 +160,6 @@ static_assert (Type::min_size + 1 <= sizeof (_Null##Type), "Null pool too small.
* Dispatch
*/
#define TRACE_DISPATCH(this, format) \
hb_auto_trace_t<context_t::max_debug_depth, typename context_t::return_t> trace \
(&c->debug_depth, c->get_name (), this, HB_FUNC, \
"format %d", (int) format);
template
<
typename
Context
,
typename
Return
,
unsigned
int
MaxDebugDepth
>
struct
hb_dispatch_context_t
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录