Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
4e1da6bb
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看板
提交
4e1da6bb
编写于
7月 29, 2019
作者:
E
Ebrahim Byagowi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[metrics] Rename hb_ot_metrics_t to hb_ot_metrics_tag_t
上级
2c2a2b97
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
22 deletion
+22
-22
src/hb-ot-metrics.cc
src/hb-ot-metrics.cc
+11
-11
src/hb-ot-metrics.h
src/hb-ot-metrics.h
+8
-8
src/hb-ot-metrics.hh
src/hb-ot-metrics.hh
+3
-3
未找到文件。
src/hb-ot-metrics.cc
浏览文件 @
4e1da6bb
...
...
@@ -34,7 +34,7 @@
static
float
_fix_ascender_descender
(
float
value
,
hb_ot_metrics_t
metrics_tag
)
_fix_ascender_descender
(
float
value
,
hb_ot_metrics_t
ag_t
metrics_tag
)
{
if
(
metrics_tag
==
HB_OT_METRICS_HORIZONTAL_ASCENDER
||
metrics_tag
==
HB_OT_METRICS_VERTICAL_ASCENDER
)
...
...
@@ -48,9 +48,9 @@ _fix_ascender_descender (float value, hb_ot_metrics_t metrics_tag)
/* The common part of _get_position logic needed on hb-ot-font and here
to be able to have slim builds without the not always needed parts */
bool
_hb_ot_metrics_get_position_common
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
)
_hb_ot_metrics_get_position_common
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
)
{
hb_face_t
*
face
=
font
->
face
;
switch
((
unsigned
)
metrics_tag
)
...
...
@@ -91,7 +91,7 @@ _hb_ot_metrics_get_position_common (hb_font_t *font,
#if 0
static bool
_get_gasp (hb_face_t *face, float *result, hb_ot_metrics_t metrics_tag)
_get_gasp (hb_face_t *face, float *result, hb_ot_metrics_t
ag_t
metrics_tag)
{
const OT::GaspRange& range = face->table.gasp->get_gasp_range (metrics_tag - HB_TAG ('g','s','p','0'));
if (&range == &Null (OT::GaspRange)) return false;
...
...
@@ -120,9 +120,9 @@ _get_gasp (hb_face_t *face, float *result, hb_ot_metrics_t metrics_tag)
* Since: REPLACEME
**/
hb_bool_t
hb_ot_metrics_get_position
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
)
hb_ot_metrics_get_position
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
)
{
hb_face_t
*
face
=
font
->
face
;
switch
((
unsigned
)
metrics_tag
)
...
...
@@ -192,7 +192,7 @@ hb_ot_metrics_get_position (hb_font_t *font,
* Since: REPLACEME
**/
float
hb_ot_metrics_get_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
)
hb_ot_metrics_get_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
)
{
return
font
->
face
->
table
.
MVAR
->
get_var
(
metrics_tag
,
font
->
coords
,
font
->
num_coords
);
}
...
...
@@ -207,7 +207,7 @@ hb_ot_metrics_get_variation (hb_font_t *font, hb_ot_metrics_t metrics_tag)
* Since: REPLACEME
**/
hb_position_t
hb_ot_metrics_get_x_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
)
hb_ot_metrics_get_x_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
)
{
return
font
->
em_scalef_x
(
hb_ot_metrics_get_variation
(
font
,
metrics_tag
));
}
...
...
@@ -222,7 +222,7 @@ hb_ot_metrics_get_x_variation (hb_font_t *font, hb_ot_metrics_t metrics_tag)
* Since: REPLACEME
**/
hb_position_t
hb_ot_metrics_get_y_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
)
hb_ot_metrics_get_y_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
)
{
return
font
->
em_scalef_y
(
hb_ot_metrics_get_variation
(
font
,
metrics_tag
));
}
...
...
src/hb-ot-metrics.h
浏览文件 @
4e1da6bb
...
...
@@ -36,7 +36,7 @@ HB_BEGIN_DECLS
/**
* hb_ot_metrics_t:
* hb_ot_metrics_t
ag_t
:
*
* From https://docs.microsoft.com/en-us/typography/opentype/spec/mvar#value-tags
*
...
...
@@ -73,21 +73,21 @@ typedef enum {
HB_OT_METRICS_UNDERLINE_OFFSET
=
HB_TAG
(
'u'
,
'n'
,
'd'
,
'o'
),
_HB_OT_METRICS_MAX_VALUE
=
HB_TAG_MAX_SIGNED
/*< skip >*/
}
hb_ot_metrics_t
;
}
hb_ot_metrics_t
ag_t
;
HB_EXTERN
hb_bool_t
hb_ot_metrics_get_position
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
);
hb_ot_metrics_get_position
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
);
HB_EXTERN
float
hb_ot_metrics_get_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
);
hb_ot_metrics_get_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
);
HB_EXTERN
hb_position_t
hb_ot_metrics_get_x_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
);
hb_ot_metrics_get_x_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
);
HB_EXTERN
hb_position_t
hb_ot_metrics_get_y_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
);
hb_ot_metrics_get_y_variation
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
);
HB_END_DECLS
...
...
src/hb-ot-metrics.hh
浏览文件 @
4e1da6bb
...
...
@@ -28,8 +28,8 @@
#include "hb.hh"
HB_INTERNAL
bool
_hb_ot_metrics_get_position_common
(
hb_font_t
*
font
,
hb_ot_metrics_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
);
_hb_ot_metrics_get_position_common
(
hb_font_t
*
font
,
hb_ot_metrics_t
ag_t
metrics_tag
,
hb_position_t
*
position
/* OUT. May be NULL. */
);
#endif
/* HB_OT_METRICS_HH */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录