Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
efca7bf9
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,发现更多精彩内容 >>
提交
efca7bf9
编写于
12月 02, 2016
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename 'ebdt' to 'cbdt' since we only support the PNG format
上级
83185259
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
10 deletion
+10
-10
src/Makefile.sources
src/Makefile.sources
+1
-1
src/hb-ot-cbdt-table.hh
src/hb-ot-cbdt-table.hh
+3
-3
src/hb-ot-font.cc
src/hb-ot-font.cc
+6
-6
未找到文件。
src/Makefile.sources
浏览文件 @
efca7bf9
...
...
@@ -20,8 +20,8 @@ HB_BASE_sources = \
hb-object-private.hh
\
hb-open-file-private.hh
\
hb-open-type-private.hh
\
hb-ot-cbdt-table.hh
\
hb-ot-cmap-table.hh
\
hb-ot-ebdt-table.hh
\
hb-ot-glyf-table.hh
\
hb-ot-head-table.hh
\
hb-ot-hhea-table.hh
\
...
...
src/hb-ot-
e
bdt-table.hh
→
src/hb-ot-
c
bdt-table.hh
浏览文件 @
efca7bf9
...
...
@@ -24,8 +24,8 @@
* Google Author(s): Seigo Nonaka
*/
#ifndef HB_OT_
E
BDT_TABLE_HH
#define HB_OT_
E
BDT_TABLE_HH
#ifndef HB_OT_
C
BDT_TABLE_HH
#define HB_OT_
C
BDT_TABLE_HH
#include "hb-open-type-private.hh"
...
...
@@ -190,4 +190,4 @@ struct CBDT
}
/* namespace OT */
#endif
/* HB_OT_
E
BDT_TABLE_HH */
#endif
/* HB_OT_
C
BDT_TABLE_HH */
src/hb-ot-font.cc
浏览文件 @
efca7bf9
...
...
@@ -31,7 +31,7 @@
#include "hb-font-private.hh"
#include "hb-ot-cmap-table.hh"
#include "hb-ot-
e
bdt-table.hh"
#include "hb-ot-
c
bdt-table.hh"
#include "hb-ot-glyf-table.hh"
#include "hb-ot-head-table.hh"
#include "hb-ot-hhea-table.hh"
...
...
@@ -208,7 +208,7 @@ struct hb_ot_face_glyf_accelerator_t
}
};
struct
hb_ot_face_
e
bdt_accelerator_t
struct
hb_ot_face_
c
bdt_accelerator_t
{
hb_blob_t
*
cblc_blob
=
NULL
;
hb_blob_t
*
cbdt_blob
=
NULL
;
...
...
@@ -470,7 +470,7 @@ struct hb_ot_font_t
hb_ot_face_metrics_accelerator_t
h_metrics
;
hb_ot_face_metrics_accelerator_t
v_metrics
;
hb_lazy_loader_t
<
hb_ot_face_glyf_accelerator_t
>
glyf
;
hb_lazy_loader_t
<
hb_ot_face_
ebdt_accelerator_t
>
e
bdt
;
hb_lazy_loader_t
<
hb_ot_face_
cbdt_accelerator_t
>
c
bdt
;
};
...
...
@@ -487,7 +487,7 @@ _hb_ot_font_create (hb_face_t *face)
ot_font
->
v_metrics
.
init
(
face
,
HB_OT_TAG_vhea
,
HB_OT_TAG_vmtx
,
HB_TAG_NONE
,
ot_font
->
h_metrics
.
ascender
-
ot_font
->
h_metrics
.
descender
);
/* TODO Can we do this lazily? */
ot_font
->
glyf
.
init
(
face
);
ot_font
->
e
bdt
.
init
(
face
);
ot_font
->
c
bdt
.
init
(
face
);
return
ot_font
;
}
...
...
@@ -499,7 +499,7 @@ _hb_ot_font_destroy (hb_ot_font_t *ot_font)
ot_font
->
h_metrics
.
fini
();
ot_font
->
v_metrics
.
fini
();
ot_font
->
glyf
.
fini
();
ot_font
->
e
bdt
.
fini
();
ot_font
->
c
bdt
.
fini
();
free
(
ot_font
);
}
...
...
@@ -559,7 +559,7 @@ hb_ot_get_glyph_extents (hb_font_t *font HB_UNUSED,
const
hb_ot_font_t
*
ot_font
=
(
const
hb_ot_font_t
*
)
font_data
;
bool
ret
=
ot_font
->
glyf
->
get_extents
(
glyph
,
extents
);
if
(
!
ret
)
ret
=
ot_font
->
e
bdt
->
get_extents
(
glyph
,
extents
);
ret
=
ot_font
->
c
bdt
->
get_extents
(
glyph
,
extents
);
extents
->
x_bearing
=
font
->
em_scale_x
(
extents
->
x_bearing
);
extents
->
y_bearing
=
font
->
em_scale_y
(
extents
->
y_bearing
);
extents
->
width
=
font
->
em_scale_x
(
extents
->
width
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录