Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
e0f16a71
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看板
“e53a48b46a143217a39b5f1c9125c4a7d507d2b5”上不存在“paddle/memory/memcpy.cc”
提交
e0f16a71
编写于
2月 24, 2016
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ot-font] Towards accelerating get_glyph()
上级
5473ebfb
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
20 addition
and
3 deletion
+20
-3
src/hb-ot-font.cc
src/hb-ot-font.cc
+20
-3
未找到文件。
src/hb-ot-font.cc
浏览文件 @
e0f16a71
...
@@ -201,9 +201,24 @@ struct hb_ot_face_glyf_accelerator_t
...
@@ -201,9 +201,24 @@ struct hb_ot_face_glyf_accelerator_t
}
}
};
};
typedef
bool
(
*
hb_cmap_get_glyph_func_t
)
(
const
void
*
obj
,
hb_codepoint_t
codepoint
,
hb_codepoint_t
*
glyph
);
template
<
typename
Type
>
static
inline
bool
get_glyph_from
(
const
void
*
obj
,
hb_codepoint_t
codepoint
,
hb_codepoint_t
*
glyph
)
{
const
Type
*
typed_obj
=
(
const
Type
*
)
obj
;
return
typed_obj
->
get_glyph
(
codepoint
,
glyph
);
}
struct
hb_ot_face_cmap_accelerator_t
struct
hb_ot_face_cmap_accelerator_t
{
{
const
OT
::
CmapSubtable
*
table
;
hb_cmap_get_glyph_func_t
get_glyph_func
;
const
void
*
get_glyph_data
;
const
OT
::
CmapSubtableFormat14
*
uvs_table
;
const
OT
::
CmapSubtableFormat14
*
uvs_table
;
hb_blob_t
*
blob
;
hb_blob_t
*
blob
;
...
@@ -238,8 +253,10 @@ struct hb_ot_face_cmap_accelerator_t
...
@@ -238,8 +253,10 @@ struct hb_ot_face_cmap_accelerator_t
/* Meh. */
/* Meh. */
if
(
!
subtable_uvs
)
subtable_uvs
=
&
OT
::
Null
(
OT
::
CmapSubtableFormat14
);
if
(
!
subtable_uvs
)
subtable_uvs
=
&
OT
::
Null
(
OT
::
CmapSubtableFormat14
);
this
->
table
=
subtable
;
this
->
uvs_table
=
subtable_uvs
;
this
->
uvs_table
=
subtable_uvs
;
this
->
get_glyph_func
=
get_glyph_from
<
OT
::
CmapSubtable
>
;
this
->
get_glyph_data
=
subtable
;
}
}
inline
void
fini
(
void
)
inline
void
fini
(
void
)
...
@@ -250,7 +267,7 @@ struct hb_ot_face_cmap_accelerator_t
...
@@ -250,7 +267,7 @@ struct hb_ot_face_cmap_accelerator_t
inline
bool
get_nominal_glyph
(
hb_codepoint_t
unicode
,
inline
bool
get_nominal_glyph
(
hb_codepoint_t
unicode
,
hb_codepoint_t
*
glyph
)
const
hb_codepoint_t
*
glyph
)
const
{
{
return
this
->
table
->
get_glyph
(
unicode
,
glyph
);
return
this
->
get_glyph_func
(
this
->
get_glyph_data
,
unicode
,
glyph
);
}
}
inline
bool
get_variation_glyph
(
hb_codepoint_t
unicode
,
inline
bool
get_variation_glyph
(
hb_codepoint_t
unicode
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录