Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2e5b49d1
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看板
未验证
提交
2e5b49d1
编写于
7月 19, 2019
作者:
E
Ebrahim Byagowi
提交者:
GitHub
7月 19, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add HB_NO_METRICS and fix HB_TINY build (#1839)
上级
bdfdac0f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
3 deletion
+14
-3
src/hb-config.hh
src/hb-config.hh
+1
-0
src/hb-ot-face-table-list.hh
src/hb-ot-face-table-list.hh
+0
-2
src/hb-ot-metrics-internal.cc
src/hb-ot-metrics-internal.cc
+7
-1
src/hb-ot-metrics.cc
src/hb-ot-metrics.cc
+6
-0
未找到文件。
src/hb-config.hh
浏览文件 @
2e5b49d1
...
...
@@ -66,6 +66,7 @@
#define HB_NO_LAYOUT_COLLECT_GLYPHS
#define HB_NO_LAYOUT_UNUSED
#define HB_NO_MATH
#define HB_NO_METRICS
#define HB_NO_MMAP
#define HB_NO_NAME
#define HB_NO_OPEN
...
...
src/hb-ot-face-table-list.hh
浏览文件 @
2e5b49d1
...
...
@@ -53,9 +53,7 @@ HB_OT_ACCELERATOR (OT, cmap)
HB_OT_TABLE
(
OT
,
hhea
)
HB_OT_ACCELERATOR
(
OT
,
hmtx
)
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-metrics-internal.cc
浏览文件 @
2e5b49d1
...
...
@@ -51,9 +51,14 @@ hb_ot_metrics_get_position_internal (hb_face_t *face,
{
switch
(
metrics_tag
)
{
#ifndef HB_NO_VAR
#define GET_VAR hb_ot_metrics_get_variation (face, metrics_tag)
#else
#define GET_VAR 0
#endif
#define GET_METRIC(TABLE, ATTR) \
(face->table.TABLE->has_data () && \
(position && (*position = face->table.TABLE->ATTR +
face->table.MVAR->get_var (metrics_tag, nullptr, 0)
), true))
(position && (*position = face->table.TABLE->ATTR +
GET_VAR
), true))
case
HB_OT_METRICS_HORIZONTAL_ASCENDER
:
return
face
->
table
.
OS2
->
use_typo_metrics
()
?
GET_METRIC
(
OS2
,
sTypoAscender
)
:
GET_METRIC
(
hhea
,
ascender
);
...
...
@@ -89,6 +94,7 @@ hb_ot_metrics_get_position_internal (hb_face_t *face,
case
HB_OT_METRICS_UNDERLINE_SIZE
:
return
GET_METRIC
(
post
->
table
,
underlineThickness
);
case
HB_OT_METRICS_UNDERLINE_OFFSET
:
return
GET_METRIC
(
post
->
table
,
underlinePosition
);
#undef GET_METRIC
#undef GET_VAR
default:
return
false
;
}
}
src/hb-ot-metrics.cc
浏览文件 @
2e5b49d1
...
...
@@ -24,6 +24,8 @@
#include "hb.hh"
#ifndef HB_NO_METRICS
#include "hb-ot-metrics.hh"
#include "hb-ot-var-mvar-table.hh"
#include "hb-ot-face.hh"
...
...
@@ -89,6 +91,7 @@ hb_ot_metrics_get_position (hb_font_t *font,
}
}
#ifndef HB_NO_VAR
/**
* hb_ot_metrics_get_variation:
* @face:
...
...
@@ -133,3 +136,6 @@ hb_ot_metrics_get_y_variation (hb_font_t *font, hb_ot_metrics_t metrics_tag)
{
return
font
->
em_scalef_y
(
hb_ot_metrics_get_variation
(
font
->
face
,
metrics_tag
));
}
#endif
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录