Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
52fbd23d
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看板
提交
52fbd23d
编写于
8月 03, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ot] Minor
上级
6a0a298a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
27 addition
and
26 deletion
+27
-26
src/hb-aat-layout.cc
src/hb-aat-layout.cc
+2
-2
src/hb-face-private.hh
src/hb-face-private.hh
+2
-5
src/hb-machinery-private.hh
src/hb-machinery-private.hh
+1
-0
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+9
-6
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+10
-10
src/hb-ot-math.cc
src/hb-ot-math.cc
+1
-1
src/hb-ot-var.cc
src/hb-ot-var.cc
+2
-2
未找到文件。
src/hb-aat-layout.cc
浏览文件 @
52fbd23d
...
...
@@ -52,9 +52,9 @@ _get_morx (hb_face_t *face, hb_blob_t **blob = nullptr)
return
Null
(
AAT
::
morx
);
}
hb_ot_layout_t
*
layout
=
hb_ot_layout_from_face
(
face
);
const
AAT
::
morx
&
morx
=
*
(
layout
->
morx
.
get
());
const
AAT
::
morx
&
morx
=
*
(
layout
->
table
.
morx
.
get
());
if
(
blob
)
*
blob
=
layout
->
morx
.
get_blob
();
*
blob
=
layout
->
table
.
morx
.
get_blob
();
return
morx
;
}
...
...
src/hb-face-private.hh
浏览文件 @
52fbd23d
...
...
@@ -55,16 +55,13 @@ struct hb_face_t {
struct
hb_shaper_data_t
shaper_data
;
/* Various shaper data. */
/* Various non-shaping data. */
/* ... */
/* Cache */
struct
plan_node_t
{
struct
plan_node_t
{
hb_shape_plan_t
*
shape_plan
;
plan_node_t
*
next
;
}
*
shape_plans
;
inline
hb_blob_t
*
reference_table
(
hb_tag_t
tag
)
const
{
hb_blob_t
*
blob
;
...
...
src/hb-machinery-private.hh
浏览文件 @
52fbd23d
...
...
@@ -602,6 +602,7 @@ struct hb_base_lazy_loader_t
inline
const
Subclass
*
thiz
(
void
)
const
{
return
static_cast
<
const
Subclass
*>
(
this
);
}
inline
Subclass
*
thiz
(
void
)
{
return
static_cast
<
Subclass
*>
(
this
);
}
inline
void
init0
(
void
)
{}
/* Init, when memory is already set to 0. No-op for us. */
inline
void
init
(
void
)
{
instance
=
nullptr
;
...
...
src/hb-ot-layout-private.hh
浏览文件 @
52fbd23d
...
...
@@ -177,12 +177,15 @@ struct hb_ot_layout_t
hb_ot_layout_lookup_accelerator_t
*
gsub_accels
;
hb_ot_layout_lookup_accelerator_t
*
gpos_accels
;
/* TODO Move the following out of this struct. */
hb_face_t
*
face
;
/* MUST be JUST before the lazy loaders. */
hb_table_lazy_loader_t
<
1
,
struct
OT
::
MATH
>
math
;
hb_table_lazy_loader_t
<
2
,
struct
OT
::
fvar
>
fvar
;
hb_table_lazy_loader_t
<
3
,
struct
OT
::
avar
>
avar
;
hb_table_lazy_loader_t
<
4
,
struct
AAT
::
morx
>
morx
;
/* Various non-shaping tables. */
struct
tables_t
{
hb_face_t
*
face
;
/* MUST be JUST before the lazy loaders. */
hb_table_lazy_loader_t
<
1
,
struct
OT
::
MATH
>
math
;
hb_table_lazy_loader_t
<
2
,
struct
OT
::
fvar
>
fvar
;
hb_table_lazy_loader_t
<
3
,
struct
OT
::
avar
>
avar
;
hb_table_lazy_loader_t
<
4
,
struct
AAT
::
morx
>
morx
;
}
table
;
};
...
...
src/hb-ot-layout.cc
浏览文件 @
52fbd23d
...
...
@@ -31,6 +31,7 @@
#include "hb-open-type-private.hh"
#include "hb-ot-layout-private.hh"
#include "hb-ot-map-private.hh"
#include "hb-map-private.hh"
#include "hb-ot-layout-gdef-table.hh"
#include "hb-ot-layout-gsub-table.hh"
...
...
@@ -44,7 +45,6 @@
#include "hb-ot-color-sbix-table.hh"
#include "hb-ot-color-svg-table.hh"
#include "hb-ot-name-table.hh"
#include "hb-map-private.hh"
static
bool
...
...
@@ -165,11 +165,11 @@ _hb_ot_layout_create (hb_face_t *face)
layout
->
gpos_blob
=
hb_sanitize_context_t
().
reference_table
<
OT
::
GPOS
>
(
face
);
layout
->
gpos
=
layout
->
gpos_blob
->
as
<
OT
::
GPOS
>
();
layout
->
face
=
face
;
layout
->
math
.
init
();
layout
->
fvar
.
init
();
layout
->
avar
.
init
();
layout
->
morx
.
init
();
layout
->
table
.
face
=
face
;
layout
->
table
.
math
.
init0
();
layout
->
table
.
fvar
.
init0
();
layout
->
table
.
avar
.
init0
();
layout
->
table
.
morx
.
init0
();
if
(
_hb_ot_blacklist_gdef
(
layout
->
gdef_blob
->
length
,
layout
->
gsub_blob
->
length
,
...
...
@@ -214,10 +214,10 @@ _hb_ot_layout_destroy (hb_ot_layout_t *layout)
hb_blob_destroy
(
layout
->
gsub_blob
);
hb_blob_destroy
(
layout
->
gpos_blob
);
layout
->
math
.
fini
();
layout
->
fvar
.
fini
();
layout
->
avar
.
fini
();
layout
->
morx
.
fini
();
layout
->
table
.
math
.
fini
();
layout
->
table
.
fvar
.
fini
();
layout
->
table
.
avar
.
fini
();
layout
->
table
.
morx
.
fini
();
free
(
layout
);
}
...
...
src/hb-ot-math.cc
浏览文件 @
52fbd23d
...
...
@@ -34,7 +34,7 @@ _get_math (hb_face_t *face)
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
Null
(
OT
::
MATH
);
hb_ot_layout_t
*
layout
=
hb_ot_layout_from_face
(
face
);
return
*
(
layout
->
math
.
get
());
return
*
(
layout
->
table
.
math
.
get
());
}
/*
...
...
src/hb-ot-var.cc
浏览文件 @
52fbd23d
...
...
@@ -41,14 +41,14 @@ _get_fvar (hb_face_t *face)
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
Null
(
OT
::
fvar
);
hb_ot_layout_t
*
layout
=
hb_ot_layout_from_face
(
face
);
return
*
(
layout
->
fvar
.
get
());
return
*
(
layout
->
table
.
fvar
.
get
());
}
static
inline
const
OT
::
avar
&
_get_avar
(
hb_face_t
*
face
)
{
if
(
unlikely
(
!
hb_ot_shaper_face_data_ensure
(
face
)))
return
Null
(
OT
::
avar
);
hb_ot_layout_t
*
layout
=
hb_ot_layout_from_face
(
face
);
return
*
(
layout
->
avar
.
get
());
return
*
(
layout
->
table
.
avar
.
get
());
}
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录