Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
61f52231
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
61f52231
编写于
11月 05, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[math] Shorten names a bit
上级
737efbe6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
16 deletion
+21
-16
src/hb-ot-math-table.hh
src/hb-ot-math-table.hh
+2
-2
src/hb-ot-math.cc
src/hb-ot-math.cc
+19
-14
未找到文件。
src/hb-ot-math-table.hh
浏览文件 @
61f52231
...
@@ -700,10 +700,10 @@ struct MATH
...
@@ -700,10 +700,10 @@ struct MATH
hb_font_t
*
font
)
const
hb_font_t
*
font
)
const
{
return
(
this
+
mathConstants
).
get_value
(
constant
,
font
);
}
{
return
(
this
+
mathConstants
).
get_value
(
constant
,
font
);
}
inline
const
MathGlyphInfo
&
get_
math_
glyph_info
(
void
)
const
inline
const
MathGlyphInfo
&
get_glyph_info
(
void
)
const
{
return
this
+
mathGlyphInfo
;
}
{
return
this
+
mathGlyphInfo
;
}
inline
const
MathVariants
&
get_
math_
variants
(
void
)
const
inline
const
MathVariants
&
get_variants
(
void
)
const
{
return
this
+
mathVariants
;
}
{
return
this
+
mathVariants
;
}
protected:
protected:
...
...
src/hb-ot-math.cc
浏览文件 @
61f52231
...
@@ -96,7 +96,7 @@ hb_position_t
...
@@ -96,7 +96,7 @@ hb_position_t
hb_ot_math_get_glyph_italics_correction
(
hb_font_t
*
font
,
hb_ot_math_get_glyph_italics_correction
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
)
hb_codepoint_t
glyph
)
{
{
return
font
->
face
->
table
.
MATH
->
get_
math_
glyph_info
().
get_italics_correction
(
glyph
,
font
);
return
font
->
face
->
table
.
MATH
->
get_glyph_info
().
get_italics_correction
(
glyph
,
font
);
}
}
/**
/**
...
@@ -112,7 +112,7 @@ hb_position_t
...
@@ -112,7 +112,7 @@ hb_position_t
hb_ot_math_get_glyph_top_accent_attachment
(
hb_font_t
*
font
,
hb_ot_math_get_glyph_top_accent_attachment
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
)
hb_codepoint_t
glyph
)
{
{
return
font
->
face
->
table
.
MATH
->
get_
math_
glyph_info
().
get_top_accent_attachment
(
glyph
,
font
);
return
font
->
face
->
table
.
MATH
->
get_glyph_info
().
get_top_accent_attachment
(
glyph
,
font
);
}
}
/**
/**
...
@@ -128,7 +128,7 @@ hb_bool_t
...
@@ -128,7 +128,7 @@ hb_bool_t
hb_ot_math_is_glyph_extended_shape
(
hb_face_t
*
face
,
hb_ot_math_is_glyph_extended_shape
(
hb_face_t
*
face
,
hb_codepoint_t
glyph
)
hb_codepoint_t
glyph
)
{
{
return
face
->
table
.
MATH
->
get_
math_
glyph_info
().
is_extended_shape
(
glyph
);
return
face
->
table
.
MATH
->
get_glyph_info
().
is_extended_shape
(
glyph
);
}
}
/**
/**
...
@@ -154,7 +154,10 @@ hb_ot_math_get_glyph_kerning (hb_font_t *font,
...
@@ -154,7 +154,10 @@ hb_ot_math_get_glyph_kerning (hb_font_t *font,
hb_ot_math_kern_t
kern
,
hb_ot_math_kern_t
kern
,
hb_position_t
correction_height
)
hb_position_t
correction_height
)
{
{
return
font
->
face
->
table
.
MATH
->
get_math_glyph_info
().
get_kerning
(
glyph
,
kern
,
correction_height
,
font
);
return
font
->
face
->
table
.
MATH
->
get_glyph_info
().
get_kerning
(
glyph
,
kern
,
correction_height
,
font
);
}
}
/**
/**
...
@@ -184,10 +187,10 @@ hb_ot_math_get_glyph_variants (hb_font_t *font,
...
@@ -184,10 +187,10 @@ hb_ot_math_get_glyph_variants (hb_font_t *font,
unsigned
int
*
variants_count
,
/* IN/OUT */
unsigned
int
*
variants_count
,
/* IN/OUT */
hb_ot_math_glyph_variant_t
*
variants
/* OUT */
)
hb_ot_math_glyph_variant_t
*
variants
/* OUT */
)
{
{
return
font
->
face
->
table
.
MATH
->
get_
math_
variants
().
get_glyph_variants
(
glyph
,
direction
,
font
,
return
font
->
face
->
table
.
MATH
->
get_variants
().
get_glyph_variants
(
glyph
,
direction
,
font
,
start_offset
,
start_offset
,
variants_count
,
variants_count
,
variants
);
variants
);
}
}
/**
/**
...
@@ -208,7 +211,7 @@ hb_position_t
...
@@ -208,7 +211,7 @@ hb_position_t
hb_ot_math_get_min_connector_overlap
(
hb_font_t
*
font
,
hb_ot_math_get_min_connector_overlap
(
hb_font_t
*
font
,
hb_direction_t
direction
)
hb_direction_t
direction
)
{
{
return
font
->
face
->
table
.
MATH
->
get_
math_
variants
().
get_min_connector_overlap
(
direction
,
font
);
return
font
->
face
->
table
.
MATH
->
get_variants
().
get_min_connector_overlap
(
direction
,
font
);
}
}
/**
/**
...
@@ -240,9 +243,11 @@ hb_ot_math_get_glyph_assembly (hb_font_t *font,
...
@@ -240,9 +243,11 @@ hb_ot_math_get_glyph_assembly (hb_font_t *font,
hb_ot_math_glyph_part_t
*
parts
,
/* OUT */
hb_ot_math_glyph_part_t
*
parts
,
/* OUT */
hb_position_t
*
italics_correction
/* OUT */
)
hb_position_t
*
italics_correction
/* OUT */
)
{
{
return
font
->
face
->
table
.
MATH
->
get_math_variants
().
get_glyph_parts
(
glyph
,
direction
,
font
,
return
font
->
face
->
table
.
MATH
->
get_variants
().
get_glyph_parts
(
glyph
,
start_offset
,
direction
,
parts_count
,
font
,
parts
,
start_offset
,
italics_correction
);
parts_count
,
parts
,
italics_correction
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录