Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
b4678278
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看板
提交
b4678278
编写于
5月 11, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[API] Remove const from font user_data
上级
ea93e7b2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
30 deletion
+30
-30
src/hb-font.cc
src/hb-font.cc
+10
-10
src/hb-font.h
src/hb-font.h
+10
-10
src/hb-ft.cc
src/hb-ft.cc
+10
-10
未找到文件。
src/hb-font.cc
浏览文件 @
b4678278
...
...
@@ -43,12 +43,12 @@ HB_BEGIN_DECLS
static
hb_bool_t
hb_font_get_contour_point_nil
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
HB_UNUSED
,
void
*
font_data
HB_UNUSED
,
hb_codepoint_t
glyph
,
unsigned
int
point_index
,
hb_position_t
*
x
,
hb_position_t
*
y
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
if
(
font
->
parent
)
{
hb_bool_t
ret
;
...
...
@@ -66,11 +66,11 @@ hb_font_get_contour_point_nil (hb_font_t *font HB_UNUSED,
static
void
hb_font_get_glyph_advance_nil
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
HB_UNUSED
,
void
*
font_data
HB_UNUSED
,
hb_codepoint_t
glyph
,
hb_position_t
*
x_advance
,
hb_position_t
*
y_advance
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
if
(
font
->
parent
)
{
hb_font_get_glyph_advance
(
font
->
parent
,
glyph
,
x_advance
,
y_advance
);
...
...
@@ -83,10 +83,10 @@ hb_font_get_glyph_advance_nil (hb_font_t *font HB_UNUSED,
static
void
hb_font_get_glyph_extents_nil
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
HB_UNUSED
,
void
*
font_data
HB_UNUSED
,
hb_codepoint_t
glyph
,
hb_glyph_extents_t
*
extents
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
if
(
font
->
parent
)
{
hb_font_get_glyph_extents
(
font
->
parent
,
glyph
,
extents
);
...
...
@@ -101,10 +101,10 @@ hb_font_get_glyph_extents_nil (hb_font_t *font HB_UNUSED,
static
hb_codepoint_t
hb_font_get_glyph_nil
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
HB_UNUSED
,
void
*
font_data
HB_UNUSED
,
hb_codepoint_t
unicode
,
hb_codepoint_t
variation_selector
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
if
(
font
->
parent
)
return
hb_font_get_glyph
(
font
->
parent
,
unicode
,
variation_selector
);
...
...
@@ -114,12 +114,12 @@ hb_font_get_glyph_nil (hb_font_t *font HB_UNUSED,
static
void
hb_font_get_kerning_nil
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
HB_UNUSED
,
void
*
font_data
HB_UNUSED
,
hb_codepoint_t
first_glyph
,
hb_codepoint_t
second_glyph
,
hb_position_t
*
x_kern
,
hb_position_t
*
y_kern
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
if
(
font
->
parent
)
{
hb_font_get_kerning
(
font
->
parent
,
first_glyph
,
second_glyph
,
x_kern
,
y_kern
);
...
...
src/hb-font.h
浏览文件 @
b4678278
...
...
@@ -128,25 +128,25 @@ typedef struct _hb_glyph_extents_t
}
hb_glyph_extents_t
;
typedef
hb_bool_t
(
*
hb_font_get_contour_point_func_t
)
(
hb_font_t
*
font
,
const
void
*
font_data
,
typedef
hb_bool_t
(
*
hb_font_get_contour_point_func_t
)
(
hb_font_t
*
font
,
void
*
font_data
,
hb_codepoint_t
glyph
,
unsigned
int
point_index
,
hb_position_t
*
x
,
hb_position_t
*
y
,
const
void
*
user_data
);
typedef
void
(
*
hb_font_get_glyph_advance_func_t
)
(
hb_font_t
*
font
,
const
void
*
font_data
,
void
*
user_data
);
typedef
void
(
*
hb_font_get_glyph_advance_func_t
)
(
hb_font_t
*
font
,
void
*
font_data
,
hb_codepoint_t
glyph
,
hb_position_t
*
x_advance
,
hb_position_t
*
y_advance
,
const
void
*
user_data
);
typedef
void
(
*
hb_font_get_glyph_extents_func_t
)
(
hb_font_t
*
font
,
const
void
*
font_data
,
void
*
user_data
);
typedef
void
(
*
hb_font_get_glyph_extents_func_t
)
(
hb_font_t
*
font
,
void
*
font_data
,
hb_codepoint_t
glyph
,
hb_glyph_extents_t
*
extents
,
const
void
*
user_data
);
typedef
hb_codepoint_t
(
*
hb_font_get_glyph_func_t
)
(
hb_font_t
*
font
,
const
void
*
font_data
,
void
*
user_data
);
typedef
hb_codepoint_t
(
*
hb_font_get_glyph_func_t
)
(
hb_font_t
*
font
,
void
*
font_data
,
hb_codepoint_t
unicode
,
hb_codepoint_t
variation_selector
,
const
void
*
user_data
);
typedef
void
(
*
hb_font_get_kerning_func_t
)
(
hb_font_t
*
font
,
const
void
*
font_data
,
void
*
user_data
);
typedef
void
(
*
hb_font_get_kerning_func_t
)
(
hb_font_t
*
font
,
void
*
font_data
,
hb_codepoint_t
first_glyph
,
hb_codepoint_t
second_glyph
,
hb_position_t
*
x_kern
,
hb_position_t
*
y_kern
,
const
void
*
user_data
);
void
*
user_data
);
void
...
...
src/hb-ft.cc
浏览文件 @
b4678278
...
...
@@ -38,12 +38,12 @@ HB_BEGIN_DECLS
static
hb_bool_t
hb_ft_get_contour_point
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
,
void
*
font_data
,
hb_codepoint_t
glyph
,
unsigned
int
point_index
,
hb_position_t
*
x
,
hb_position_t
*
y
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
FT_Face
ft_face
=
(
FT_Face
)
font_data
;
int
load_flags
=
FT_LOAD_DEFAULT
;
...
...
@@ -67,11 +67,11 @@ hb_ft_get_contour_point (hb_font_t *font HB_UNUSED,
static
void
hb_ft_get_glyph_advance
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
,
void
*
font_data
,
hb_codepoint_t
glyph
,
hb_position_t
*
x_advance
,
hb_position_t
*
y_advance
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
FT_Face
ft_face
=
(
FT_Face
)
font_data
;
int
load_flags
=
FT_LOAD_DEFAULT
;
...
...
@@ -87,10 +87,10 @@ hb_ft_get_glyph_advance (hb_font_t *font HB_UNUSED,
static
void
hb_ft_get_glyph_extents
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
,
void
*
font_data
,
hb_codepoint_t
glyph
,
hb_glyph_extents_t
*
extents
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
FT_Face
ft_face
=
(
FT_Face
)
font_data
;
int
load_flags
=
FT_LOAD_DEFAULT
;
...
...
@@ -109,10 +109,10 @@ hb_ft_get_glyph_extents (hb_font_t *font HB_UNUSED,
static
hb_codepoint_t
hb_ft_get_glyph
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
,
void
*
font_data
,
hb_codepoint_t
unicode
,
hb_codepoint_t
variation_selector
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
FT_Face
ft_face
=
(
FT_Face
)
font_data
;
...
...
@@ -130,12 +130,12 @@ hb_ft_get_glyph (hb_font_t *font HB_UNUSED,
static
void
hb_ft_get_kerning
(
hb_font_t
*
font
HB_UNUSED
,
const
void
*
font_data
,
void
*
font_data
,
hb_codepoint_t
first_glyph
,
hb_codepoint_t
second_glyph
,
hb_position_t
*
x_kern
,
hb_position_t
*
y_kern
,
const
void
*
user_data
HB_UNUSED
)
void
*
user_data
HB_UNUSED
)
{
FT_Face
ft_face
=
(
FT_Face
)
font_data
;
FT_Vector
kerning
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录