Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2e336692
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看板
提交
2e336692
编写于
11月 05, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add hb_font_get_*
上级
9bef3611
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
54 addition
and
1 deletion
+54
-1
src/hb-font.cc
src/hb-font.cc
+35
-0
src/hb-font.h
src/hb-font.h
+18
-0
src/hb-shape.c
src/hb-shape.c
+1
-1
未找到文件。
src/hb-font.cc
浏览文件 @
2e336692
...
...
@@ -170,6 +170,41 @@ hb_font_funcs_set_kerning_func (hb_font_funcs_t *ffuncs,
}
hb_codepoint_t
hb_font_get_glyph
(
hb_font_t
*
font
,
hb_face_t
*
face
,
hb_codepoint_t
unicode
,
hb_codepoint_t
variation_selector
)
{
return
font
->
klass
->
get_glyph
(
font
,
face
,
font
->
user_data
,
unicode
,
variation_selector
);
}
hb_bool_t
hb_font_get_contour_point
(
hb_font_t
*
font
,
hb_face_t
*
face
,
unsigned
int
point_index
,
hb_codepoint_t
glyph
,
hb_position_t
*
x
,
hb_position_t
*
y
)
{
return
font
->
klass
->
get_contour_point
(
font
,
face
,
font
->
user_data
,
point_index
,
glyph
,
x
,
y
);
}
void
hb_font_get_glyph_metrics
(
hb_font_t
*
font
,
hb_face_t
*
face
,
hb_codepoint_t
glyph
,
hb_glyph_metrics_t
*
metrics
)
{
/* TODO Zero metrics here? */
return
font
->
klass
->
get_glyph_metrics
(
font
,
face
,
font
->
user_data
,
glyph
,
metrics
);
}
hb_position_t
hb_font_get_kerning
(
hb_font_t
*
font
,
hb_face_t
*
face
,
hb_codepoint_t
first_glyph
,
hb_codepoint_t
second_glyph
)
{
return
font
->
klass
->
get_kerning
(
font
,
face
,
font
->
user_data
,
first_glyph
,
second_glyph
);
}
/*
* hb_face_t
*/
...
...
src/hb-font.h
浏览文件 @
2e336692
...
...
@@ -130,6 +130,24 @@ hb_font_funcs_set_kerning_func (hb_font_funcs_t *ffuncs,
hb_font_get_kerning_func_t
kerning_func
);
hb_codepoint_t
hb_font_get_glyph
(
hb_font_t
*
font
,
hb_face_t
*
face
,
hb_codepoint_t
unicode
,
hb_codepoint_t
variation_selector
);
hb_bool_t
hb_font_get_contour_point
(
hb_font_t
*
font
,
hb_face_t
*
face
,
unsigned
int
point_index
,
hb_codepoint_t
glyph
,
hb_position_t
*
x
,
hb_position_t
*
y
);
void
hb_font_get_glyph_metrics
(
hb_font_t
*
font
,
hb_face_t
*
face
,
hb_codepoint_t
glyph
,
hb_glyph_metrics_t
*
metrics
);
hb_position_t
hb_font_get_kerning
(
hb_font_t
*
font
,
hb_face_t
*
face
,
hb_codepoint_t
first_glyph
,
hb_codepoint_t
second_glyph
);
/*
* hb_font_t
*/
...
...
src/hb-shape.c
浏览文件 @
2e336692
...
...
@@ -70,7 +70,7 @@ hb_shape (hb_font_t *font,
/* natural direction analysis */
/* OT preprocess */
map_glyphs
(
f
ace
,
font
,
buffer
);
map_glyphs
(
f
ont
,
face
,
buffer
);
/* GSUB */
/* Default positioning */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录