Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
702d86ba
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,发现更多精彩内容 >>
提交
702d86ba
编写于
11月 14, 2017
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ot] Fold hb_ot_face_kern_accelerator_t
上级
909de95a
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
10 addition
and
26 deletion
+10
-26
src/hb-ot-font.cc
src/hb-ot-font.cc
+1
-22
src/hb-ot-kern-table.hh
src/hb-ot-kern-table.hh
+9
-4
未找到文件。
src/hb-ot-font.cc
浏览文件 @
702d86ba
...
...
@@ -335,27 +335,6 @@ struct hb_ot_face_post_accelerator_t
}
};
struct
hb_ot_face_kern_accelerator_t
{
hb_blob_t
*
kern_blob
;
OT
::
kern
::
accelerator_t
accel
;
inline
void
init
(
hb_face_t
*
face
)
{
hb_blob_t
*
blob
=
this
->
kern_blob
=
OT
::
Sanitizer
<
OT
::
kern
>::
sanitize
(
face
->
reference_table
(
HB_OT_TAG_kern
));
accel
.
init
(
OT
::
Sanitizer
<
OT
::
kern
>::
lock_instance
(
blob
),
hb_blob_get_length
(
blob
));
}
inline
void
fini
(
void
)
{
accel
.
fini
();
hb_blob_destroy
(
this
->
kern_blob
);
}
inline
int
get_h_kerning
(
hb_codepoint_t
left
,
hb_codepoint_t
right
)
const
{
return
accel
.
get_h_kerning
(
left
,
right
);
}
};
typedef
bool
(
*
hb_cmap_get_glyph_func_t
)
(
const
void
*
obj
,
hb_codepoint_t
codepoint
,
hb_codepoint_t
*
glyph
);
...
...
@@ -492,7 +471,7 @@ struct hb_ot_font_t
OT
::
hb_lazy_loader_t
<
hb_ot_face_glyf_accelerator_t
>
glyf
;
OT
::
hb_lazy_loader_t
<
hb_ot_face_cbdt_accelerator_t
>
cbdt
;
OT
::
hb_lazy_loader_t
<
hb_ot_face_post_accelerator_t
>
post
;
OT
::
hb_lazy_loader_t
<
hb_ot_face_kern_
accelerator_t
>
kern
;
OT
::
hb_lazy_loader_t
<
OT
::
kern
::
accelerator_t
>
kern
;
};
...
...
src/hb-ot-kern-table.hh
浏览文件 @
702d86ba
...
...
@@ -358,17 +358,22 @@ struct kern
struct
accelerator_t
{
inline
void
init
(
const
kern
*
table_
,
unsigned
int
table_length_
)
inline
void
init
(
hb_face_t
*
face
)
{
table
=
table_
;
table_length
=
table_length_
;
blob
=
Sanitizer
<
kern
>::
sanitize
(
face
->
reference_table
(
HB_OT_TAG_kern
));
table
=
Sanitizer
<
kern
>::
lock_instance
(
blob
);
table_length
=
hb_blob_get_length
(
blob
);
}
inline
void
fini
(
void
)
{
hb_blob_destroy
(
blob
);
}
inline
void
fini
(
void
)
{}
inline
int
get_h_kerning
(
hb_codepoint_t
left
,
hb_codepoint_t
right
)
const
{
return
table
->
get_h_kerning
(
left
,
right
,
table_length
);
}
private:
hb_blob_t
*
blob
;
const
kern
*
table
;
unsigned
int
table_length
;
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录