Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
1ba767cd
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看板
提交
1ba767cd
编写于
9月 26, 2016
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[MATH] Move API from hb-ot-layout.h to hb-ot-math.h
上级
97b72da6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
57 addition
and
52 deletion
+57
-52
src/hb-ot-layout.h
src/hb-ot-layout.h
+0
-52
src/hb-ot-math.h
src/hb-ot-math.h
+56
-0
src/hb-ot.h
src/hb-ot.h
+1
-0
未找到文件。
src/hb-ot-layout.h
浏览文件 @
1ba767cd
...
...
@@ -33,7 +33,6 @@
#include "hb.h"
#include "hb-ot-math.h"
#include "hb-ot-tag.h"
HB_BEGIN_DECLS
...
...
@@ -43,7 +42,6 @@ HB_BEGIN_DECLS
#define HB_OT_TAG_GSUB HB_TAG('G','S','U','B')
#define HB_OT_TAG_GPOS HB_TAG('G','P','O','S')
#define HB_OT_TAG_JSTF HB_TAG('J','S','T','F')
#define HB_OT_TAG_MATH HB_TAG('M','A','T','H')
/*
...
...
@@ -299,56 +297,6 @@ hb_ot_layout_get_size_params (hb_face_t *face,
unsigned
int
*
range_end
/* OUT. May be NULL */
);
/*
* MATH
*/
HB_EXTERN
hb_bool_t
hb_ot_layout_has_math_data
(
hb_face_t
*
face
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_constant
(
hb_font_t
*
font
,
hb_ot_math_constant_t
constant
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_italics_correction
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_top_accent_attachment
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
);
HB_EXTERN
hb_bool_t
hb_ot_layout_is_math_extended_shape
(
hb_face_t
*
face
,
hb_codepoint_t
glyph
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_kerning
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
hb_ot_math_kern_t
kern
,
hb_position_t
correction_height
);
HB_EXTERN
unsigned
int
hb_ot_layout_get_math_glyph_variants
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
hb_direction_t
direction
,
unsigned
int
start_offset
,
unsigned
int
*
variants_count
,
/* IN/OUT */
hb_math_glyph_variant_t
*
variants
/* OUT */
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_min_connector_overlap
(
hb_font_t
*
font
,
hb_direction_t
direction
);
HB_EXTERN
unsigned
int
hb_ot_layout_get_math_glyph_assembly
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
hb_direction_t
direction
,
unsigned
int
start_offset
,
unsigned
int
*
parts_count
,
/* IN/OUT */
hb_math_glyph_part_t
*
parts
,
/* OUT */
hb_position_t
*
italics_correction
/* OUT */
);
HB_END_DECLS
#endif
/* HB_OT_LAYOUT_H */
src/hb-ot-math.h
浏览文件 @
1ba767cd
...
...
@@ -36,6 +36,14 @@
HB_BEGIN_DECLS
/*
* MATH
*/
#define HB_OT_TAG_MATH HB_TAG('M','A','T','H')
/* Types */
typedef
enum
{
HB_OT_MATH_CONSTANT_SCRIPT_PERCENT_SCALE_DOWN
=
0
,
HB_OT_MATH_CONSTANT_SCRIPT_SCRIPT_PERCENT_SCALE_DOWN
=
1
,
...
...
@@ -119,6 +127,54 @@ typedef struct hb_math_glyph_part_t {
hb_math_glyph_part_flags_t
flags
;
}
hb_math_glyph_part_t
;
/* Methods */
HB_EXTERN
hb_bool_t
hb_ot_layout_has_math_data
(
hb_face_t
*
face
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_constant
(
hb_font_t
*
font
,
hb_ot_math_constant_t
constant
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_italics_correction
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_top_accent_attachment
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
);
HB_EXTERN
hb_bool_t
hb_ot_layout_is_math_extended_shape
(
hb_face_t
*
face
,
hb_codepoint_t
glyph
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_kerning
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
hb_ot_math_kern_t
kern
,
hb_position_t
correction_height
);
HB_EXTERN
unsigned
int
hb_ot_layout_get_math_glyph_variants
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
hb_direction_t
direction
,
unsigned
int
start_offset
,
unsigned
int
*
variants_count
,
/* IN/OUT */
hb_math_glyph_variant_t
*
variants
/* OUT */
);
HB_EXTERN
hb_position_t
hb_ot_layout_get_math_min_connector_overlap
(
hb_font_t
*
font
,
hb_direction_t
direction
);
HB_EXTERN
unsigned
int
hb_ot_layout_get_math_glyph_assembly
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
hb_direction_t
direction
,
unsigned
int
start_offset
,
unsigned
int
*
parts_count
,
/* IN/OUT */
hb_math_glyph_part_t
*
parts
,
/* OUT */
hb_position_t
*
italics_correction
/* OUT */
);
HB_END_DECLS
...
...
src/hb-ot.h
浏览文件 @
1ba767cd
...
...
@@ -32,6 +32,7 @@
#include "hb-ot-font.h"
#include "hb-ot-layout.h"
#include "hb-ot-math.h"
#include "hb-ot-tag.h"
#include "hb-ot-shape.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录