Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
4a8d2e37
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看板
提交
4a8d2e37
编写于
8月 26, 2011
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[graphite2] Chop a few more lines
上级
81ec289d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
9 deletion
+4
-9
src/hb-graphite2.cc
src/hb-graphite2.cc
+4
-9
未找到文件。
src/hb-graphite2.cc
浏览文件 @
4a8d2e37
...
@@ -59,10 +59,9 @@ static struct hb_gr_face_data_t {
...
@@ -59,10 +59,9 @@ static struct hb_gr_face_data_t {
}
_hb_gr_face_data_nil
=
{
NULL
,
NULL
};
}
_hb_gr_face_data_nil
=
{
NULL
,
NULL
};
static
struct
hb_gr_font_data_t
{
static
struct
hb_gr_font_data_t
{
hb_font_t
*
font
;
gr_font
*
grfont
;
gr_font
*
grfont
;
gr_face
*
grface
;
gr_face
*
grface
;
}
_hb_gr_font_data_nil
=
{
NULL
,
NULL
,
NULL
};
}
_hb_gr_font_data_nil
=
{
NULL
,
NULL
};
static
const
void
*
hb_gr_get_table
(
const
void
*
data
,
unsigned
int
tag
,
size_t
*
len
)
static
const
void
*
hb_gr_get_table
(
const
void
*
data
,
unsigned
int
tag
,
size_t
*
len
)
...
@@ -107,12 +106,9 @@ static const void *hb_gr_get_table (const void *data, unsigned int tag, size_t *
...
@@ -107,12 +106,9 @@ static const void *hb_gr_get_table (const void *data, unsigned int tag, size_t *
return
d
;
return
d
;
}
}
static
float
hb_gr_get_advance
(
const
void
*
data
,
unsigned
short
gid
)
static
float
hb_gr_get_advance
(
const
void
*
hb_font
,
unsigned
short
gid
)
{
{
hb_gr_font_data_t
*
font
=
(
hb_gr_font_data_t
*
)
data
;
return
hb_font_get_glyph_h_advance
((
hb_font_t
*
)
hb_font
,
gid
);
if
(
!
font
->
font
)
return
0
;
return
(
float
)
hb_font_get_glyph_h_advance
(
font
->
font
,
gid
);
}
}
static
void
_hb_gr_face_data_destroy
(
void
*
data
)
static
void
_hb_gr_face_data_destroy
(
void
*
data
)
...
@@ -193,11 +189,10 @@ _hb_gr_font_get_data (hb_font_t *font)
...
@@ -193,11 +189,10 @@ _hb_gr_font_get_data (hb_font_t *font)
return
&
_hb_gr_font_data_nil
;
return
&
_hb_gr_font_data_nil
;
}
}
data
->
font
=
font
;
data
->
grface
=
_hb_gr_face_get_data
(
font
->
face
)
->
grface
;
data
->
grface
=
_hb_gr_face_get_data
(
font
->
face
)
->
grface
;
int
scale
;
int
scale
;
hb_font_get_scale
(
font
,
&
scale
,
NULL
);
hb_font_get_scale
(
font
,
&
scale
,
NULL
);
data
->
grfont
=
gr_make_font_with_advance_fn
(
scale
,
data
,
&
hb_gr_get_advance
,
data
->
grface
);
data
->
grfont
=
gr_make_font_with_advance_fn
(
scale
,
font
,
&
hb_gr_get_advance
,
data
->
grface
);
if
(
unlikely
(
!
hb_font_set_user_data
(
font
,
&
hb_gr_data_key
,
data
,
if
(
unlikely
(
!
hb_font_set_user_data
(
font
,
&
hb_gr_data_key
,
data
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录