Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
230adf2c
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,发现更多精彩内容 >>
提交
230adf2c
编写于
6月 19, 2019
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[config] Add HB_NO_OT_FONT_GLYPH_NAMES
Part of
https://github.com/harfbuzz/harfbuzz/issues/1652
上级
b0debc32
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
2 deletion
+8
-2
src/hb-config.hh
src/hb-config.hh
+1
-0
src/hb-ot-face-table-list.hh
src/hb-ot-face-table-list.hh
+3
-1
src/hb-ot-font.cc
src/hb-ot-font.cc
+4
-1
未找到文件。
src/hb-config.hh
浏览文件 @
230adf2c
...
...
@@ -58,6 +58,7 @@
#define HB_NO_CFF
#define HB_NO_COLOR
#define HB_NO_GETENV
#define HB_NO_OT_FONT_GLYPH_NAMES
#define HB_NO_LANGUAGE_PRIVATE_SUBTAG
#define HB_NO_LAYOUT_UNUSED
#define HB_NO_MATH
...
...
src/hb-ot-face-table-list.hh
浏览文件 @
230adf2c
...
...
@@ -49,8 +49,10 @@
HB_OT_TABLE
(
OT
,
head
)
HB_OT_ACCELERATOR
(
OT
,
cmap
)
HB_OT_ACCELERATOR
(
OT
,
hmtx
)
HB_OT_ACCELERATOR
(
OT
,
post
)
HB_OT_TABLE
(
OT
,
OS2
)
#ifndef HB_NO_OT_FONT_GLYPH_NAMES
HB_OT_ACCELERATOR
(
OT
,
post
)
#endif
#ifndef HB_NO_NAME
HB_OT_ACCELERATOR
(
OT
,
name
)
#endif
...
...
src/hb-ot-font.cc
浏览文件 @
230adf2c
...
...
@@ -205,6 +205,7 @@ hb_ot_get_glyph_extents (hb_font_t *font,
return
ret
;
}
#ifndef HB_NO_OT_FONT_GLYPH_NAMES
static
hb_bool_t
hb_ot_get_glyph_name
(
hb_font_t
*
font
HB_UNUSED
,
void
*
font_data
,
...
...
@@ -215,7 +216,6 @@ hb_ot_get_glyph_name (hb_font_t *font HB_UNUSED,
const
hb_ot_face_t
*
ot_face
=
(
const
hb_ot_face_t
*
)
font_data
;
return
ot_face
->
post
->
get_glyph_name
(
glyph
,
name
,
size
);
}
static
hb_bool_t
hb_ot_get_glyph_from_name
(
hb_font_t
*
font
HB_UNUSED
,
void
*
font_data
,
...
...
@@ -226,6 +226,7 @@ hb_ot_get_glyph_from_name (hb_font_t *font HB_UNUSED,
const
hb_ot_face_t
*
ot_face
=
(
const
hb_ot_face_t
*
)
font_data
;
return
ot_face
->
post
->
get_glyph_from_name
(
name
,
len
,
glyph
);
}
#endif
static
hb_bool_t
hb_ot_get_font_h_extents
(
hb_font_t
*
font
,
...
...
@@ -278,8 +279,10 @@ static struct hb_ot_font_funcs_lazy_loader_t : hb_font_funcs_lazy_loader_t<hb_ot
hb_font_funcs_set_glyph_v_origin_func
(
funcs
,
hb_ot_get_glyph_v_origin
,
nullptr
,
nullptr
);
hb_font_funcs_set_glyph_extents_func
(
funcs
,
hb_ot_get_glyph_extents
,
nullptr
,
nullptr
);
//hb_font_funcs_set_glyph_contour_point_func (funcs, hb_ot_get_glyph_contour_point, nullptr, nullptr);
#ifndef HB_NO_OT_FONT_GLYPH_NAMES
hb_font_funcs_set_glyph_name_func
(
funcs
,
hb_ot_get_glyph_name
,
nullptr
,
nullptr
);
hb_font_funcs_set_glyph_from_name_func
(
funcs
,
hb_ot_get_glyph_from_name
,
nullptr
,
nullptr
);
#endif
hb_font_funcs_make_immutable
(
funcs
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录