Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
1d82b476
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
1d82b476
编写于
11月 10, 2018
作者:
E
Ebrahim Byagowi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[colr/feat/trak] minor
上级
3a9fa8c0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
35 deletion
+32
-35
src/hb-aat-layout-feat-table.hh
src/hb-aat-layout-feat-table.hh
+7
-7
src/hb-aat-layout-trak-table.hh
src/hb-aat-layout-trak-table.hh
+19
-16
src/hb-ot-color-colr-table.hh
src/hb-ot-color-colr-table.hh
+6
-12
未找到文件。
src/hb-aat-layout-feat-table.hh
浏览文件 @
1d82b476
...
@@ -54,13 +54,6 @@ struct SettingName
...
@@ -54,13 +54,6 @@ struct SettingName
struct
FeatureName
struct
FeatureName
{
{
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
,
const
void
*
base
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
(
base
+
settingTable
).
sanitize
(
c
,
nSettings
)));
}
enum
{
enum
{
Exclusive
=
0x8000
,
/* If set, the feature settings are mutually exclusive. */
Exclusive
=
0x8000
,
/* If set, the feature settings are mutually exclusive. */
NotDefault
=
0x4000
,
/* If clear, then the setting with an index of 0 in
NotDefault
=
0x4000
,
/* If clear, then the setting with an index of 0 in
...
@@ -75,6 +68,13 @@ struct FeatureName
...
@@ -75,6 +68,13 @@ struct FeatureName
* as the default. */
* as the default. */
};
};
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
,
const
void
*
base
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
(
base
+
settingTable
).
sanitize
(
c
,
nSettings
)));
}
protected:
protected:
HBUINT16
feature
;
/* Feature type. */
HBUINT16
feature
;
/* Feature type. */
HBUINT16
nSettings
;
/* The number of records in the setting name array. */
HBUINT16
nSettings
;
/* The number of records in the setting name array. */
...
...
src/hb-aat-layout-trak-table.hh
浏览文件 @
1d82b476
...
@@ -171,15 +171,6 @@ struct trak
...
@@ -171,15 +171,6 @@ struct trak
inline
bool
has_data
(
void
)
const
{
return
version
.
to_int
()
!=
0
;
}
inline
bool
has_data
(
void
)
const
{
return
version
.
to_int
()
!=
0
;
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
horizData
.
sanitize
(
c
,
this
,
this
)
&&
vertData
.
sanitize
(
c
,
this
,
this
)));
}
inline
bool
apply
(
hb_aat_apply_context_t
*
c
)
const
inline
bool
apply
(
hb_aat_apply_context_t
*
c
)
const
{
{
TRACE_APPLY
(
this
);
TRACE_APPLY
(
this
);
...
@@ -221,15 +212,27 @@ struct trak
...
@@ -221,15 +212,27 @@ struct trak
return_trace
(
true
);
return_trace
(
true
);
}
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
likely
(
c
->
check_struct
(
this
)
&&
version
.
major
==
1
&&
horizData
.
sanitize
(
c
,
this
,
this
)
&&
vertData
.
sanitize
(
c
,
this
,
this
)));
}
protected:
protected:
FixedVersion
<>
version
;
/* Version of the tracking table
FixedVersion
<>
version
;
/* Version of the tracking table
* (0x00010000u for version 1.0). */
* (0x00010000u for version 1.0). */
HBUINT16
format
;
/* Format of the tracking table (set to 0). */
HBUINT16
format
;
/* Format of the tracking table (set to 0). */
OffsetTo
<
TrackData
>
horizData
;
/* Offset from start of tracking table to TrackData
OffsetTo
<
TrackData
>
* for horizontal text (or 0 if none). */
horizData
;
/* Offset from start of tracking table to TrackData
OffsetTo
<
TrackData
>
vertData
;
/* Offset from start of tracking table to TrackData
* for horizontal text (or 0 if none). */
* for vertical text (or 0 if none). */
OffsetTo
<
TrackData
>
HBUINT16
reserved
;
/* Reserved. Set to 0. */
vertData
;
/* Offset from start of tracking table to TrackData
* for vertical text (or 0 if none). */
HBUINT16
reserved
;
/* Reserved. Set to 0. */
public:
public:
DEFINE_SIZE_STATIC
(
12
);
DEFINE_SIZE_STATIC
(
12
);
...
...
src/hb-ot-color-colr-table.hh
浏览文件 @
1d82b476
...
@@ -103,7 +103,12 @@ struct COLR
...
@@ -103,7 +103,12 @@ struct COLR
unsigned
int
*
count
,
/* IN/OUT. May be NULL. */
unsigned
int
*
count
,
/* IN/OUT. May be NULL. */
hb_ot_color_layer_t
*
layers
/* OUT. May be NULL. */
)
const
hb_ot_color_layer_t
*
layers
/* OUT. May be NULL. */
)
const
{
{
const
BaseGlyphRecord
&
record
=
get_glyph_record
(
glyph
);
const
BaseGlyphRecord
*
rec
=
(
BaseGlyphRecord
*
)
bsearch
(
&
glyph
,
&
(
this
+
baseGlyphsZ
),
numBaseGlyphs
,
sizeof
(
BaseGlyphRecord
),
BaseGlyphRecord
::
cmp
);
const
BaseGlyphRecord
&
record
=
rec
?
*
rec
:
Null
(
BaseGlyphRecord
);
hb_array_t
<
const
LayerRecord
>
all_layers
((
this
+
layersZ
).
arrayZ
,
numLayers
);
hb_array_t
<
const
LayerRecord
>
all_layers
((
this
+
layersZ
).
arrayZ
,
numLayers
);
hb_array_t
<
const
LayerRecord
>
glyph_layers
=
all_layers
.
sub_array
(
record
.
firstLayerIdx
,
hb_array_t
<
const
LayerRecord
>
glyph_layers
=
all_layers
.
sub_array
(
record
.
firstLayerIdx
,
...
@@ -129,17 +134,6 @@ struct COLR
...
@@ -129,17 +134,6 @@ struct COLR
(
this
+
layersZ
).
sanitize
(
c
,
numLayers
)));
(
this
+
layersZ
).
sanitize
(
c
,
numLayers
)));
}
}
private:
inline
const
BaseGlyphRecord
&
get_glyph_record
(
hb_codepoint_t
glyph_id
)
const
{
const
BaseGlyphRecord
*
rec
=
(
BaseGlyphRecord
*
)
bsearch
(
&
glyph_id
,
&
(
this
+
baseGlyphsZ
),
numBaseGlyphs
,
sizeof
(
BaseGlyphRecord
),
BaseGlyphRecord
::
cmp
);
return
rec
?
*
rec
:
Null
(
BaseGlyphRecord
);
}
protected:
protected:
HBUINT16
version
;
/* Table version number (starts at 0). */
HBUINT16
version
;
/* Table version number (starts at 0). */
HBUINT16
numBaseGlyphs
;
/* Number of Base Glyph Records. */
HBUINT16
numBaseGlyphs
;
/* Number of Base Glyph Records. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录