Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
e50c3978
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e50c3978
编写于
1月 28, 2008
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename HB_OT_Layout to hb_ot_layout_t
上级
dfa81196
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
36 addition
and
39 deletion
+36
-39
src/hb-ot-layout-private.h
src/hb-ot-layout-private.h
+4
-4
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+17
-17
src/hb-ot-layout.h
src/hb-ot-layout.h
+15
-18
未找到文件。
src/hb-ot-layout-private.h
浏览文件 @
e50c3978
...
...
@@ -49,14 +49,14 @@ HB_BEGIN_DECLS();
*/
HB_OT_LAYOUT_INTERNAL
hb_bool_t
_hb_ot_layout_has_new_glyph_classes
(
HB_OT_Layou
t
*
layout
);
_hb_ot_layout_has_new_glyph_classes
(
hb_ot_layout_
t
*
layout
);
HB_OT_LAYOUT_INTERNAL
hb_ot_layout_glyph_properties_t
_hb_ot_layout_get_glyph_properties
(
HB_OT_Layou
t
*
layout
,
hb_glyph_t
glyph
);
_hb_ot_layout_get_glyph_properties
(
hb_ot_layout_
t
*
layout
,
hb_glyph_t
glyph
);
HB_OT_LAYOUT_INTERNAL
hb_bool_t
_hb_ot_layout_check_glyph_properties
(
HB_OT_Layout
*
layout
,
_hb_ot_layout_check_glyph_properties
(
hb_ot_layout_t
*
layout
,
HB_GlyphItem
gitem
,
hb_ot_layout_lookup_flags_t
lookup_flags
,
hb_ot_layout_glyph_properties_t
*
property
);
...
...
src/hb-ot-layout.cc
浏览文件 @
e50c3978
...
...
@@ -40,7 +40,7 @@
#include <string.h>
struct
_
HB_OT_Layou
t
{
struct
_
hb_ot_layout_
t
{
const
GDEF
*
gdef
;
const
GSUB
*
gsub
;
//const GPOS *gpos;
...
...
@@ -52,11 +52,11 @@ struct _HB_OT_Layout {
};
HB_OT_Layou
t
*
hb_ot_layout_
t
*
hb_ot_layout_create_for_data
(
const
char
*
font_data
,
int
face_index
)
{
HB_OT_Layout
*
layout
=
(
HB_OT_Layout
*
)
calloc
(
1
,
sizeof
(
HB_OT_Layou
t
));
hb_ot_layout_t
*
layout
=
(
hb_ot_layout_t
*
)
calloc
(
1
,
sizeof
(
hb_ot_layout_
t
));
const
OpenTypeFontFile
&
font
=
OpenTypeFontFile
::
get_for_data
(
font_data
);
const
OpenTypeFontFace
&
face
=
font
.
get_face
(
face_index
);
...
...
@@ -69,7 +69,7 @@ hb_ot_layout_create_for_data (const char *font_data,
}
void
hb_ot_layout_destroy
(
HB_OT_Layou
t
*
layout
)
hb_ot_layout_destroy
(
hb_ot_layout_
t
*
layout
)
{
free
(
layout
);
}
...
...
@@ -79,20 +79,20 @@ hb_ot_layout_destroy (HB_OT_Layout *layout)
*/
hb_bool_t
hb_ot_layout_has_font_glyph_classes
(
HB_OT_Layou
t
*
layout
)
hb_ot_layout_has_font_glyph_classes
(
hb_ot_layout_
t
*
layout
)
{
return
layout
->
gdef
->
has_glyph_classes
();
}
HB_OT_LAYOUT_INTERNAL
hb_bool_t
_hb_ot_layout_has_new_glyph_classes
(
HB_OT_Layou
t
*
layout
)
_hb_ot_layout_has_new_glyph_classes
(
hb_ot_layout_
t
*
layout
)
{
return
layout
->
new_gdef
.
len
>
0
;
}
HB_OT_LAYOUT_INTERNAL
hb_ot_layout_glyph_properties_t
_hb_ot_layout_get_glyph_properties
(
HB_OT_Layou
t
*
layout
,
hb_glyph_t
glyph
)
_hb_ot_layout_get_glyph_properties
(
hb_ot_layout_
t
*
layout
,
hb_glyph_t
glyph
)
{
hb_ot_layout_class_t
klass
;
...
...
@@ -118,7 +118,7 @@ _hb_ot_layout_get_glyph_properties (HB_OT_Layout *layout,
}
HB_OT_LAYOUT_INTERNAL
hb_bool_t
_hb_ot_layout_check_glyph_properties
(
HB_OT_Layout
*
layout
,
_hb_ot_layout_check_glyph_properties
(
hb_ot_layout_t
*
layout
,
HB_GlyphItem
gitem
,
hb_ot_layout_lookup_flags_t
lookup_flags
,
hb_ot_layout_glyph_properties_t
*
property
)
...
...
@@ -168,8 +168,8 @@ _hb_ot_layout_check_glyph_properties (HB_OT_Layout *layout,
hb_ot_layout_glyph_class_t
hb_ot_layout_get_glyph_class
(
HB_OT_Layou
t
*
layout
,
hb_glyph_t
glyph
)
hb_ot_layout_get_glyph_class
(
hb_ot_layout_
t
*
layout
,
hb_glyph_t
glyph
)
{
hb_ot_layout_glyph_properties_t
properties
;
hb_ot_layout_class_t
klass
;
...
...
@@ -183,7 +183,7 @@ hb_ot_layout_get_glyph_class (HB_OT_Layout *layout,
}
void
hb_ot_layout_set_glyph_class
(
HB_OT_Layout
*
layout
,
hb_ot_layout_set_glyph_class
(
hb_ot_layout_t
*
layout
,
hb_glyph_t
glyph
,
hb_ot_layout_glyph_class_t
klass
)
{
...
...
@@ -224,11 +224,11 @@ hb_ot_layout_set_glyph_class (HB_OT_Layout *layout,
}
void
hb_ot_layout_build_glyph_classes
(
HB_OT_Layout
*
layout
,
uint16_t
num_total_glyphs
,
hb_glyph_t
*
glyphs
,
unsigned
char
*
klasses
,
uint16_t
count
)
hb_ot_layout_build_glyph_classes
(
hb_ot_layout_t
*
layout
,
uint16_t
num_total_glyphs
,
hb_glyph_t
*
glyphs
,
unsigned
char
*
klasses
,
uint16_t
count
)
{
int
i
;
...
...
src/hb-ot-layout.h
浏览文件 @
e50c3978
...
...
@@ -32,23 +32,20 @@
HB_BEGIN_DECLS
();
/*
*
HB_OT_Layou
t
*
hb_ot_layout_
t
*/
typedef
struct
_
HB_OT_Layout
HB_OT_Layou
t
;
typedef
struct
_
hb_ot_layout_t
hb_ot_layout_
t
;
HB_OT_Layou
t
*
hb_ot_layout_
t
*
hb_ot_layout_create_for_data
(
const
char
*
font_data
,
int
face_index
);
void
hb_ot_layout_destroy
(
HB_OT_Layou
t
*
layout
);
hb_ot_layout_destroy
(
hb_ot_layout_
t
*
layout
);
/* TODO
HB_OT_Layout *
hb_ot_layout_create_sanitize (char *data,
make_writable_func);
*/
/* TODO sanitizing API/constructor (make_wrieable_func_t) */
/* TODO get_table_func_t constructor */
/*
* GDEF
...
...
@@ -63,23 +60,23 @@ typedef enum {
}
hb_ot_layout_glyph_class_t
;
hb_bool_t
hb_ot_layout_has_font_glyph_classes
(
HB_OT_Layout
*
layout
);
hb_ot_layout_has_font_glyph_classes
(
hb_ot_layout_t
*
layout
);
hb_ot_layout_glyph_class_t
hb_ot_layout_get_glyph_class
(
HB_OT_Layou
t
*
layout
,
hb_glyph_t
glyph
);
hb_ot_layout_get_glyph_class
(
hb_ot_layout_
t
*
layout
,
hb_glyph_t
glyph
);
void
hb_ot_layout_set_glyph_class
(
HB_OT_Layout
*
layout
,
hb_ot_layout_set_glyph_class
(
hb_ot_layout_t
*
layout
,
hb_glyph_t
glyph
,
hb_ot_layout_glyph_class_t
klass
);
void
hb_ot_layout_build_glyph_classes
(
HB_OT_Layout
*
layout
,
uint16_t
num_total_glyphs
,
hb_glyph_t
*
glyphs
,
unsigned
char
*
klasses
,
uint16_t
count
);
hb_ot_layout_build_glyph_classes
(
hb_ot_layout_t
*
layout
,
uint16_t
num_total_glyphs
,
hb_glyph_t
*
glyphs
,
unsigned
char
*
klasses
,
uint16_t
count
);
HB_END_DECLS
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录