Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
cf3de4d8
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看板
提交
cf3de4d8
编写于
9月 10, 2016
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[GX] Rename VarStore to VariationStore
上级
1f6ed356
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
src/hb-ot-layout-common-private.hh
src/hb-ot-layout-common-private.hh
+6
-6
src/hb-ot-layout-gdef-table.hh
src/hb-ot-layout-gdef-table.hh
+7
-7
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+1
-1
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+1
-1
未找到文件。
src/hb-ot-layout-common-private.hh
浏览文件 @
cf3de4d8
...
...
@@ -1303,7 +1303,7 @@ struct VarData
DEFINE_SIZE_ARRAY2
(
6
,
regionIndices
,
bytesX
);
};
struct
VarStore
struct
Var
iation
Store
{
inline
float
get_delta
(
unsigned
int
outer
,
unsigned
int
inner
,
int
*
coords
,
unsigned
int
coord_count
)
const
...
...
@@ -1417,10 +1417,10 @@ struct VariationDevice
private:
inline
hb_position_t
get_x_delta
(
hb_font_t
*
font
,
const
VarStore
&
store
)
const
inline
hb_position_t
get_x_delta
(
hb_font_t
*
font
,
const
Var
iation
Store
&
store
)
const
{
return
font
->
em_scalef_x
(
get_delta
(
store
,
font
->
x_coords
,
font
->
num_coords
));
}
inline
hb_position_t
get_y_delta
(
hb_font_t
*
font
,
const
VarStore
&
store
)
const
inline
hb_position_t
get_y_delta
(
hb_font_t
*
font
,
const
Var
iation
Store
&
store
)
const
{
return
font
->
em_scalef_y
(
get_delta
(
store
,
font
->
y_coords
,
font
->
num_coords
));
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
...
...
@@ -1431,7 +1431,7 @@ struct VariationDevice
private:
inline
float
get_delta
(
const
VarStore
&
store
,
inline
float
get_delta
(
const
Var
iation
Store
&
store
,
int
*
coords
,
unsigned
int
coord_count
)
const
{
return
store
.
get_delta
(
outerIndex
,
innerIndex
,
coords
,
coord_count
);
...
...
@@ -1458,7 +1458,7 @@ struct DeviceHeader
struct
Device
{
inline
hb_position_t
get_x_delta
(
hb_font_t
*
font
,
const
VarStore
&
store
)
const
inline
hb_position_t
get_x_delta
(
hb_font_t
*
font
,
const
Var
iation
Store
&
store
)
const
{
switch
(
u
.
b
.
format
)
{
...
...
@@ -1470,7 +1470,7 @@ struct Device
return
0
;
}
}
inline
hb_position_t
get_y_delta
(
hb_font_t
*
font
,
const
VarStore
&
store
)
const
inline
hb_position_t
get_y_delta
(
hb_font_t
*
font
,
const
Var
iation
Store
&
store
)
const
{
switch
(
u
.
b
.
format
)
{
...
...
src/hb-ot-layout-gdef-table.hh
浏览文件 @
cf3de4d8
...
...
@@ -146,7 +146,7 @@ struct CaretValueFormat3
{
friend
struct
CaretValue
;
inline
hb_position_t
get_caret_value
(
hb_font_t
*
font
,
hb_direction_t
direction
,
const
VarStore
&
var_store
)
const
inline
hb_position_t
get_caret_value
(
hb_font_t
*
font
,
hb_direction_t
direction
,
const
Var
iation
Store
&
var_store
)
const
{
return
HB_DIRECTION_IS_HORIZONTAL
(
direction
)
?
font
->
em_scale_x
(
coordinate
)
+
(
this
+
deviceTable
).
get_x_delta
(
font
,
var_store
)
:
...
...
@@ -175,7 +175,7 @@ struct CaretValue
inline
hb_position_t
get_caret_value
(
hb_font_t
*
font
,
hb_direction_t
direction
,
hb_codepoint_t
glyph_id
,
const
VarStore
&
var_store
)
const
const
Var
iation
Store
&
var_store
)
const
{
switch
(
u
.
format
)
{
case
1
:
return
u
.
format1
.
get_caret_value
(
font
,
direction
);
...
...
@@ -213,7 +213,7 @@ struct LigGlyph
inline
unsigned
int
get_lig_carets
(
hb_font_t
*
font
,
hb_direction_t
direction
,
hb_codepoint_t
glyph_id
,
const
VarStore
&
var_store
,
const
Var
iation
Store
&
var_store
,
unsigned
int
start_offset
,
unsigned
int
*
caret_count
/* IN/OUT */
,
hb_position_t
*
caret_array
/* OUT */
)
const
...
...
@@ -248,7 +248,7 @@ struct LigCaretList
inline
unsigned
int
get_lig_carets
(
hb_font_t
*
font
,
hb_direction_t
direction
,
hb_codepoint_t
glyph_id
,
const
VarStore
&
var_store
,
const
Var
iation
Store
&
var_store
,
unsigned
int
start_offset
,
unsigned
int
*
caret_count
/* IN/OUT */
,
hb_position_t
*
caret_array
/* OUT */
)
const
...
...
@@ -381,8 +381,8 @@ struct GDEF
{
return
version
.
to_int
()
>=
0x00010002u
&&
(
this
+
markGlyphSetsDef
).
covers
(
set_index
,
glyph_id
);
}
inline
bool
has_var_store
(
void
)
const
{
return
version
.
to_int
()
>=
0x00010003u
&&
varStore
!=
0
;
}
inline
const
VarStore
&
get_var_store
(
void
)
const
{
return
version
.
to_int
()
>=
0x00010003u
?
this
+
varStore
:
Null
(
VarStore
);
}
inline
const
Var
iation
Store
&
get_var_store
(
void
)
const
{
return
version
.
to_int
()
>=
0x00010003u
?
this
+
varStore
:
Null
(
Var
iation
Store
);
}
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
...
...
@@ -444,7 +444,7 @@ struct GDEF
* definitions--from beginning of GDEF
* header (may be NULL). Introduced
* in version 0x00010002. */
OffsetTo
<
VarStore
,
ULONG
>
OffsetTo
<
Var
iation
Store
,
ULONG
>
varStore
;
/* Offset to the table of Item Variation
* Store--from beginning of GDEF
* header (may be NULL). Introduced
...
...
src/hb-ot-layout-gpos-table.hh
浏览文件 @
cf3de4d8
...
...
@@ -133,7 +133,7 @@ struct ValueFormat : USHORT
if
(
!
use_x_device
&&
!
use_y_device
)
return
;
const
VarStore
&
store
=
c
->
var_store
;
const
Var
iation
Store
&
store
=
c
->
var_store
;
/* pixel -> fractional pixel */
if
(
format
&
xPlaDevice
)
{
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
cf3de4d8
...
...
@@ -469,7 +469,7 @@ struct hb_apply_context_t :
unsigned
int
lookup_props
;
const
GDEF
&
gdef
;
bool
has_glyph_classes
;
const
VarStore
&
var_store
;
const
Var
iation
Store
&
var_store
;
skipping_iterator_t
iter_input
,
iter_context
;
unsigned
int
lookup_index
;
unsigned
int
debug_depth
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录