Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
0ad8c663
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
0ad8c663
编写于
2月 26, 2018
作者:
E
Ebrahim Byagowi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove public API of the branch
上级
551fa2d2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
35 addition
and
37 deletion
+35
-37
src/hb-ot-base.h
src/hb-ot-base.h
+2
-2
src/hb-ot-layout-base-table.hh
src/hb-ot-layout-base-table.hh
+10
-10
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+23
-25
未找到文件。
src/hb-ot-base.h
浏览文件 @
0ad8c663
...
@@ -48,8 +48,8 @@ HB_BEGIN_DECLS
...
@@ -48,8 +48,8 @@ HB_BEGIN_DECLS
/* Methods */
/* Methods */
HB_EXTERN
hb_bool_t
//
HB_EXTERN hb_bool_t
hb_ot_base_has_data
(
hb_face_t
*
face
);
//
hb_ot_base_has_data (hb_face_t *face);
HB_END_DECLS
HB_END_DECLS
...
...
src/hb-ot-layout-base-table.hh
浏览文件 @
0ad8c663
...
@@ -23,8 +23,8 @@
...
@@ -23,8 +23,8 @@
*
*
*/
*/
#ifndef HB_OT_BASE_TABLE_HH
#ifndef HB_OT_
LAYOUT_
BASE_TABLE_HH
#define HB_OT_BASE_TABLE_HH
#define HB_OT_
LAYOUT_
BASE_TABLE_HH
#include "hb-open-type-private.hh"
#include "hb-open-type-private.hh"
#include "hb-ot-layout-common-private.hh"
#include "hb-ot-layout-common-private.hh"
...
@@ -312,7 +312,7 @@ struct BaseScript {
...
@@ -312,7 +312,7 @@ struct BaseScript {
return
(
this
+
defaultMinMax
).
get_min_value
(
featureTableTagIndex
);
return
(
this
+
defaultMinMax
).
get_min_value
(
featureTableTagIndex
);
}
}
if
(
unlikely
(
baseLangSysIndex
>=
baseLangSysCount
))
return
NO_COORD
;
if
(
unlikely
(
baseLangSysIndex
>=
baseLangSysCount
))
return
NO_COORD
;
return
baseLangSysRecords
[
baseLangSysIndex
].
get_max_value
(
featureTableTagIndex
);
return
baseLangSysRecords
[
baseLangSysIndex
].
get_max_value
(
featureTableTagIndex
);
}
}
inline
HBINT16
get_max_value
(
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
inline
HBINT16
get_max_value
(
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
...
@@ -401,7 +401,7 @@ struct BaseScriptList {
...
@@ -401,7 +401,7 @@ struct BaseScriptList {
}
}
inline
unsigned
int
get_default_base_tag_index
(
unsigned
int
baseScriptIndex
)
const
inline
unsigned
int
get_default_base_tag_index
(
unsigned
int
baseScriptIndex
)
const
{
{
if
(
unlikely
(
baseScriptIndex
>=
baseScriptCount
))
return
NOT_INDEXED
;
if
(
unlikely
(
baseScriptIndex
>=
baseScriptCount
))
return
NOT_INDEXED
;
return
baseScriptRecords
[
baseScriptIndex
].
get_default_base_tag_index
();
return
baseScriptRecords
[
baseScriptIndex
].
get_default_base_tag_index
();
}
}
...
@@ -449,7 +449,7 @@ struct BaseScriptList {
...
@@ -449,7 +449,7 @@ struct BaseScriptList {
public:
public:
DEFINE_SIZE_ARRAY
(
4
,
baseScriptRecords
);
DEFINE_SIZE_ARRAY
(
4
,
baseScriptRecords
);
};
};
struct
BaseTagList
struct
BaseTagList
...
@@ -487,7 +487,7 @@ struct Axis
...
@@ -487,7 +487,7 @@ struct Axis
}
}
inline
unsigned
int
get_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
inline
unsigned
int
get_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
{
{
if
(
unlikely
(
baseScriptList
==
Null
(
OffsetTo
<
BaseScriptList
>
)))
return
NOT_INDEXED
;
if
(
unlikely
(
baseScriptList
==
Null
(
OffsetTo
<
BaseScriptList
>
)))
return
NOT_INDEXED
;
return
(
this
+
baseScriptList
).
get_default_base_tag_index
(
baseScriptIndex
);
return
(
this
+
baseScriptList
).
get_default_base_tag_index
(
baseScriptIndex
);
}
}
...
@@ -546,7 +546,7 @@ struct BASEFormat1_1
...
@@ -546,7 +546,7 @@ struct BASEFormat1_1
TRACE_SANITIZE
(
this
);
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
return_trace
(
c
->
check_struct
(
this
)
&&
horizAxis
.
sanitize
(
c
,
this
)
&&
horizAxis
.
sanitize
(
c
,
this
)
&&
vertAxis
.
sanitize
(
c
,
this
)
&&
vertAxis
.
sanitize
(
c
,
this
)
&&
itemVarStore
.
sanitize
(
c
,
this
));
itemVarStore
.
sanitize
(
c
,
this
));
}
}
...
@@ -578,7 +578,7 @@ struct BASEFormat1_0
...
@@ -578,7 +578,7 @@ struct BASEFormat1_0
}
}
inline
unsigned
int
get_horiz_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
inline
unsigned
int
get_horiz_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
{
{
if
(
unlikely
(
horizAxis
==
Null
(
OffsetTo
<
Axis
>
)))
return
NOT_INDEXED
;
if
(
unlikely
(
horizAxis
==
Null
(
OffsetTo
<
Axis
>
)))
return
NOT_INDEXED
;
return
(
this
+
horizAxis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
return
(
this
+
horizAxis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
}
}
...
@@ -598,7 +598,7 @@ struct BASEFormat1_0
...
@@ -598,7 +598,7 @@ struct BASEFormat1_0
}
}
inline
unsigned
int
get_vert_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
inline
unsigned
int
get_vert_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
{
{
if
(
unlikely
(
vertAxis
==
Null
(
OffsetTo
<
Axis
>
)))
return
NOT_INDEXED
;
if
(
unlikely
(
vertAxis
==
Null
(
OffsetTo
<
Axis
>
)))
return
NOT_INDEXED
;
return
(
this
+
vertAxis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
return
(
this
+
vertAxis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
}
}
...
@@ -796,4 +796,4 @@ struct BASE
...
@@ -796,4 +796,4 @@ struct BASE
}
/* namespace OT */
}
/* namespace OT */
#endif
/* HB_OT_BASE_TABLE_HH */
#endif
/* HB_OT_
LAYOUT_
BASE_TABLE_HH */
src/hb-ot-layout.cc
浏览文件 @
0ad8c663
...
@@ -222,13 +222,13 @@ _hb_ot_layout_destroy (hb_ot_layout_t *layout)
...
@@ -222,13 +222,13 @@ _hb_ot_layout_destroy (hb_ot_layout_t *layout)
free
(
layout
);
free
(
layout
);
}
}
static
inline
const
OT
::
BASE
&
//
static inline const OT::BASE&
_get_base
(
hb_face_t
*
face
)
//
_get_base (hb_face_t *face)
{
//
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
OT
::
Null
(
OT
::
BASE
);
//
if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::BASE);
hb_ot_layout_t
*
layout
=
hb_ot_layout_from_face
(
face
);
//
hb_ot_layout_t * layout = hb_ot_layout_from_face (face);
return
*
(
layout
->
base
.
get
());
//
return *(layout->base.get ());
}
//
}
static
inline
const
OT
::
GDEF
&
static
inline
const
OT
::
GDEF
&
_get_gdef
(
hb_face_t
*
face
)
_get_gdef
(
hb_face_t
*
face
)
...
@@ -1283,21 +1283,19 @@ hb_ot_layout_substitute_lookup (OT::hb_ot_apply_context_t *c,
...
@@ -1283,21 +1283,19 @@ hb_ot_layout_substitute_lookup (OT::hb_ot_apply_context_t *c,
* OT::BASE
* OT::BASE
*/
*/
#if 0
// /**
/**
// * hb_ot_base_has_data:
* hb_ot_base_has_data:
// * @face: #hb_face_t to test
* @face: #hb_face_t to test
// *
*
// * This function allows to verify the presence of an OpenType BASE table on the
* This function allows to verify the presence of an OpenType BASE table on the
// * face.
* face.
// *
*
// * Return value: true if face has a BASE table, false otherwise
* Return value: true if face has a BASE table, false otherwise
// *
*
// * Since: XXX
* Since: XXX
// **/
**/
// hb_bool_t
hb_bool_t
// hb_ot_base_has_data (hb_face_t *face)
hb_ot_base_has_data (hb_face_t *face)
// {
{
// return &_get_base (face) != &OT::Null(OT::BASE);
return &_get_base (face) != &OT::Null(OT::BASE);
// }
}
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录