Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
1abd427a
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看板
提交
1abd427a
编写于
8月 06, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BASE] Rename horzi/vert to h/v
上级
da48aca1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
34 addition
and
34 deletion
+34
-34
src/hb-ot-layout-base-table.hh
src/hb-ot-layout-base-table.hh
+34
-34
未找到文件。
src/hb-ot-layout-base-table.hh
浏览文件 @
1abd427a
...
...
@@ -525,78 +525,78 @@ struct BASE
{
static
const
hb_tag_t
tableTag
=
HB_OT_TAG_BASE
;
inline
bool
has_v
ert_axis
(
void
)
{
return
vert
Axis
!=
0
;
}
inline
bool
has_v
_axis
(
void
)
{
return
v
Axis
!=
0
;
}
inline
bool
has_h
oriz_axis
(
void
)
{
return
horiz
Axis
!=
0
;
}
inline
bool
has_h
_axis
(
void
)
{
return
h
Axis
!=
0
;
}
inline
unsigned
int
get_h
oriz
_base_tag_index
(
Tag
baselineTag
)
const
inline
unsigned
int
get_h_base_tag_index
(
Tag
baselineTag
)
const
{
return
(
this
+
h
oriz
Axis
).
get_base_tag_index
(
baselineTag
);
return
(
this
+
hAxis
).
get_base_tag_index
(
baselineTag
);
}
inline
unsigned
int
get_h
oriz
_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
inline
unsigned
int
get_h_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
{
return
(
this
+
h
oriz
Axis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
return
(
this
+
hAxis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
}
inline
int
get_h
oriz
_base_coord
(
unsigned
int
baseScriptIndex
,
unsigned
int
baselineTagIndex
)
const
inline
int
get_h_base_coord
(
unsigned
int
baseScriptIndex
,
unsigned
int
baselineTagIndex
)
const
{
return
(
this
+
h
oriz
Axis
).
get_base_coord
(
baseScriptIndex
,
baselineTagIndex
);
return
(
this
+
hAxis
).
get_base_coord
(
baseScriptIndex
,
baselineTagIndex
);
}
inline
unsigned
int
get_v
ert
_base_tag_index
(
Tag
baselineTag
)
const
inline
unsigned
int
get_v_base_tag_index
(
Tag
baselineTag
)
const
{
return
(
this
+
v
ert
Axis
).
get_base_tag_index
(
baselineTag
);
return
(
this
+
vAxis
).
get_base_tag_index
(
baselineTag
);
}
inline
unsigned
int
get_v
ert
_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
inline
unsigned
int
get_v_default_base_tag_index_for_script_index
(
unsigned
int
baseScriptIndex
)
const
{
return
(
this
+
v
ert
Axis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
return
(
this
+
vAxis
).
get_default_base_tag_index_for_script_index
(
baseScriptIndex
);
}
inline
int
get_v
ert
_base_coord
(
unsigned
int
baseScriptIndex
,
unsigned
int
baselineTagIndex
)
const
inline
int
get_v_base_coord
(
unsigned
int
baseScriptIndex
,
unsigned
int
baselineTagIndex
)
const
{
return
(
this
+
v
ert
Axis
).
get_base_coord
(
baseScriptIndex
,
baselineTagIndex
);
return
(
this
+
vAxis
).
get_base_coord
(
baseScriptIndex
,
baselineTagIndex
);
}
inline
unsigned
int
get_h
oriz
_lang_tag_index
(
unsigned
int
baseScriptIndex
,
Tag
baseLangSysTag
)
const
inline
unsigned
int
get_h_lang_tag_index
(
unsigned
int
baseScriptIndex
,
Tag
baseLangSysTag
)
const
{
return
(
this
+
h
oriz
Axis
).
get_lang_tag_index
(
baseScriptIndex
,
baseLangSysTag
);
return
(
this
+
hAxis
).
get_lang_tag_index
(
baseScriptIndex
,
baseLangSysTag
);
}
inline
unsigned
int
get_h
oriz
_feature_tag_index
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
Tag
featureTableTag
)
const
inline
unsigned
int
get_h_feature_tag_index
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
Tag
featureTableTag
)
const
{
return
(
this
+
h
oriz
Axis
).
get_feature_tag_index
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTag
);
return
(
this
+
hAxis
).
get_feature_tag_index
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTag
);
}
inline
int
get_h
oriz
_max_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
inline
int
get_h_max_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
{
return
(
this
+
h
oriz
Axis
).
get_max_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
return
(
this
+
hAxis
).
get_max_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
}
inline
int
get_h
oriz
_min_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
inline
int
get_h_min_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
{
return
(
this
+
h
oriz
Axis
).
get_min_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
return
(
this
+
hAxis
).
get_min_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
}
inline
unsigned
int
get_v
ert
_lang_tag_index
(
unsigned
int
baseScriptIndex
,
Tag
baseLangSysTag
)
const
inline
unsigned
int
get_v_lang_tag_index
(
unsigned
int
baseScriptIndex
,
Tag
baseLangSysTag
)
const
{
return
(
this
+
v
ert
Axis
).
get_lang_tag_index
(
baseScriptIndex
,
baseLangSysTag
);
return
(
this
+
vAxis
).
get_lang_tag_index
(
baseScriptIndex
,
baseLangSysTag
);
}
inline
unsigned
int
get_v
ert
_feature_tag_index
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
Tag
featureTableTag
)
const
inline
unsigned
int
get_v_feature_tag_index
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
Tag
featureTableTag
)
const
{
return
(
this
+
v
ert
Axis
).
get_feature_tag_index
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTag
);
return
(
this
+
vAxis
).
get_feature_tag_index
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTag
);
}
inline
int
get_v
ert
_max_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
inline
int
get_v_max_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
{
return
(
this
+
v
ert
Axis
).
get_max_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
return
(
this
+
vAxis
).
get_max_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
}
inline
int
get_v
ert
_min_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
inline
int
get_v_min_value
(
unsigned
int
baseScriptIndex
,
unsigned
int
baseLangSysIndex
,
unsigned
int
featureTableTagIndex
)
const
{
return
(
this
+
v
ert
Axis
).
get_min_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
return
(
this
+
vAxis
).
get_min_value
(
baseScriptIndex
,
baseLangSysIndex
,
featureTableTagIndex
);
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
...
...
@@ -604,15 +604,15 @@ struct BASE
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
)
&&
likely
(
version
.
major
==
1
)
&&
h
oriz
Axis
.
sanitize
(
c
,
this
)
&&
v
ert
Axis
.
sanitize
(
c
,
this
)
&&
hAxis
.
sanitize
(
c
,
this
)
&&
vAxis
.
sanitize
(
c
,
this
)
&&
(
version
.
to_int
()
<
0x00010001u
||
varStore
.
sanitize
(
c
,
this
)));
}
protected:
FixedVersion
<>
version
;
OffsetTo
<
Axis
>
h
oriz
Axis
;
OffsetTo
<
Axis
>
v
ert
Axis
;
OffsetTo
<
Axis
>
hAxis
;
OffsetTo
<
Axis
>
vAxis
;
LOffsetTo
<
VariationStore
>
varStore
;
/* Offset to the table of Item Variation
* Store--from beginning of BASE
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录