Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
c5419b6c
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,发现更多精彩内容 >>
提交
c5419b6c
编写于
5月 08, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Remove DEFINE_NON_INSTANTIABLE
上级
0dff25f0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
1 addition
and
22 deletion
+1
-22
src/hb-ot-layout-gdef-private.h
src/hb-ot-layout-gdef-private.h
+0
-2
src/hb-ot-layout-gsub-private.h
src/hb-ot-layout-gsub-private.h
+0
-3
src/hb-ot-layout-open-private.h
src/hb-ot-layout-open-private.h
+1
-17
未找到文件。
src/hb-ot-layout-gdef-private.h
浏览文件 @
c5419b6c
...
...
@@ -149,8 +149,6 @@ struct CaretValueFormat3 {
ASSERT_SIZE
(
CaretValueFormat3
,
6
);
struct
CaretValue
{
DEFINE_NON_INSTANTIABLE
(
CaretValue
);
/* XXX we need access to a load-contour-point vfunc here */
int
get_caret_value
(
int
ppem
)
const
{
switch
(
u
.
caretValueFormat
)
{
...
...
src/hb-ot-layout-gsub-private.h
浏览文件 @
c5419b6c
...
...
@@ -997,7 +997,6 @@ enum {
};
struct
SubstLookupSubTable
{
DEFINE_NON_INSTANTIABLE
(
SubstLookupSubTable
);
friend
struct
SubstLookup
;
...
...
@@ -1052,8 +1051,6 @@ inline bool ExtensionSubstFormat1::substitute (SUBTABLE_SUBSTITUTE_ARGS_DEF) con
struct
SubstLookup
:
Lookup
{
DEFINE_NON_INSTANTIABLE
(
SubstLookup
);
inline
const
SubstLookupSubTable
&
get_subtable
(
unsigned
int
i
)
const
{
return
*
(
SubstLookupSubTable
*
)
&
(((
Lookup
*
)
this
)
->
get_subtable
(
i
));
}
...
...
src/hb-ot-layout-open-private.h
浏览文件 @
c5419b6c
...
...
@@ -184,12 +184,6 @@
* Class features
*/
/* makes class uninstantiable. should be used for union classes that don't
* contain any complete type */
#define DEFINE_NON_INSTANTIABLE(Type) \
protected: inline Type() {}
/* cannot be instantiated */
\
public:
// TODO use a global nul-array for most Null's
/* defines Null##Type as a safe nil instance of Type */
#define DEFINE_NULL_DATA(Type, size, data) \
...
...
@@ -440,7 +434,7 @@ DEFINE_NULL_ASSERT_SIZE (TTCHeader, 12);
*/
struct
OpenTypeFontFile
{
DEFINE_NON_INSTANTIABLE
(
OpenTypeFontFile
);
static
const
hb_tag_t
TrueTypeTag
=
HB_TAG
(
0
,
1
,
0
,
0
);
static
const
hb_tag_t
CFFTag
=
HB_TAG
(
'O'
,
'T'
,
'T'
,
'O'
);
static
const
hb_tag_t
TTCTag
=
HB_TAG
(
't'
,
't'
,
'c'
,
'f'
);
...
...
@@ -648,8 +642,6 @@ struct LookupFlag : USHORT {
DEFINE_NULL_ASSERT_SIZE
(
LookupFlag
,
2
);
struct
LookupSubTable
{
DEFINE_NON_INSTANTIABLE
(
LookupSubTable
);
private:
USHORT
format
;
/* Subtable format. Different for GSUB and GPOS */
};
...
...
@@ -657,8 +649,6 @@ DEFINE_NULL_ASSERT_SIZE (LookupSubTable, 2);
struct
Lookup
{
DEFINE_NON_INSTANTIABLE
(
Lookup
);
DEFINE_ARRAY_INTERFACE
(
LookupSubTable
,
subtable
);
/* get_subtable_count(), get_subtable(i) */
inline
bool
is_right_to_left
(
void
)
const
{
return
lookupFlag
&
LookupFlag
::
RightToLeft
;
}
...
...
@@ -778,8 +768,6 @@ struct CoverageFormat2 {
ASSERT_SIZE
(
CoverageFormat2
,
4
);
struct
Coverage
{
DEFINE_NON_INSTANTIABLE
(
Coverage
);
unsigned
int
get_coverage
(
hb_codepoint_t
glyph_id
)
const
{
switch
(
u
.
coverageFormat
)
{
case
1
:
return
u
.
format1
.
get_coverage
(
glyph_id
);
...
...
@@ -869,8 +857,6 @@ struct ClassDefFormat2 {
ASSERT_SIZE
(
ClassDefFormat2
,
4
);
struct
ClassDef
{
DEFINE_NON_INSTANTIABLE
(
ClassDef
);
hb_ot_layout_class_t
get_class
(
hb_codepoint_t
glyph_id
)
const
{
switch
(
u
.
classFormat
)
{
case
1
:
return
u
.
format1
.
get_class
(
glyph_id
);
...
...
@@ -893,8 +879,6 @@ DEFINE_NULL (ClassDef, 2);
*/
struct
Device
{
DEFINE_NON_INSTANTIABLE
(
Device
);
int
get_delta
(
int
ppem_size
)
const
{
if
(
ppem_size
>=
startSize
&&
ppem_size
<=
endSize
&&
deltaFormat
>=
1
&&
deltaFormat
<=
3
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录