Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
081819ea
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看板
提交
081819ea
编写于
8月 10, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[OT] Hookup glib unicode funcs
上级
49f261df
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
16 deletion
+18
-16
src/hb-buffer.c
src/hb-buffer.c
+7
-7
src/hb-glib.c
src/hb-glib.c
+3
-1
src/hb-glib.h
src/hb-glib.h
+2
-2
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+5
-5
src/hb-private.h
src/hb-private.h
+1
-1
未找到文件。
src/hb-buffer.c
浏览文件 @
081819ea
...
...
@@ -180,7 +180,7 @@ hb_buffer_set_direction (hb_buffer_t *buffer,
/* HarfBuzz-Internal API */
HB_INTERNAL
void
void
_hb_buffer_clear_output
(
hb_buffer_t
*
buffer
)
{
buffer
->
out_length
=
0
;
...
...
@@ -202,7 +202,7 @@ hb_buffer_clear_positions (hb_buffer_t *buffer)
memset
(
buffer
->
positions
,
0
,
sizeof
(
buffer
->
positions
[
0
])
*
buffer
->
in_length
);
}
HB_INTERNAL
void
void
_hb_buffer_swap
(
hb_buffer_t
*
buffer
)
{
unsigned
int
tmp
;
...
...
@@ -244,7 +244,7 @@ _hb_buffer_swap (hb_buffer_t *buffer)
The cluster value for the glyph at position buffer->in_pos is used
for all replacement glyphs */
HB_INTERNAL
void
void
_hb_buffer_add_output_glyphs
(
hb_buffer_t
*
buffer
,
unsigned
int
num_in
,
unsigned
int
num_out
,
...
...
@@ -286,7 +286,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
}
HB_INTERNAL
void
void
_hb_buffer_add_output_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
,
unsigned
short
component
,
...
...
@@ -315,7 +315,7 @@ _hb_buffer_add_output_glyph (hb_buffer_t *buffer,
buffer
->
out_length
=
buffer
->
out_pos
;
}
HB_INTERNAL
void
void
_hb_buffer_next_glyph
(
hb_buffer_t
*
buffer
)
{
if
(
buffer
->
out_string
!=
buffer
->
in_string
)
...
...
@@ -331,14 +331,14 @@ _hb_buffer_next_glyph (hb_buffer_t *buffer)
buffer
->
out_length
=
buffer
->
out_pos
;
}
HB_INTERNAL
void
void
_hb_buffer_replace_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph_index
)
{
_hb_buffer_add_output_glyph
(
buffer
,
glyph_index
,
0xFFFF
,
0xFFFF
);
}
HB_INTERNAL
unsigned
short
unsigned
short
_hb_buffer_allocate_lig_id
(
hb_buffer_t
*
buffer
)
{
return
++
buffer
->
max_lig_id
;
...
...
src/hb-glib.c
浏览文件 @
081819ea
...
...
@@ -40,7 +40,7 @@ static unsigned int hb_glib_get_eastasian_width_nil (hb_codepoint_t unicode) { r
hb_unicode_funcs_t
*
hb_glib_
unicode_funcs_create
(
void
)
hb_glib_
get_unicode_funcs
(
void
)
{
if
(
HB_UNLIKELY
(
!
glib_ufuncs
))
{
glib_ufuncs
=
hb_unicode_funcs_create
();
...
...
@@ -50,6 +50,8 @@ hb_glib_unicode_funcs_create (void)
hb_unicode_funcs_set_script_func
(
glib_ufuncs
,
hb_glib_get_script_nil
);
hb_unicode_funcs_set_combining_class_func
(
glib_ufuncs
,
hb_glib_get_combining_class_nil
);
hb_unicode_funcs_set_eastasian_width_func
(
glib_ufuncs
,
hb_glib_get_eastasian_width_nil
);
hb_unicode_funcs_make_immutable
(
glib_ufuncs
);
}
return
hb_unicode_funcs_reference
(
glib_ufuncs
);
...
...
src/hb-glib.h
浏览文件 @
081819ea
...
...
@@ -27,14 +27,14 @@
#ifndef HB_GLIB_H
#define HB_GLIB_H
#include "hb
-common
.h"
#include "hb.h"
#include "hb-unicode.h"
HB_BEGIN_DECLS
hb_unicode_funcs_t
*
hb_glib_
unicode_funcs_create
(
void
);
hb_glib_
get_unicode_funcs
(
void
);
HB_END_DECLS
...
...
src/hb-ot-layout.cc
浏览文件 @
081819ea
...
...
@@ -101,7 +101,7 @@ hb_ot_layout_has_font_glyph_classes (hb_face_t *face)
return
_get_gdef
(
face
).
has_glyph_classes
();
}
HB_INTERNAL
hb_bool_t
hb_bool_t
_hb_ot_layout_has_new_glyph_classes
(
hb_face_t
*
face
)
{
return
face
->
ot_layout
.
new_gdef
.
len
>
0
;
...
...
@@ -131,7 +131,7 @@ _hb_ot_layout_get_glyph_property (hb_face_t *face,
}
}
HB_INTERNAL
hb_bool_t
hb_bool_t
_hb_ot_layout_check_glyph_property
(
hb_face_t
*
face
,
hb_internal_glyph_info_t
*
ginfo
,
unsigned
int
lookup_flags
,
...
...
@@ -170,7 +170,7 @@ _hb_ot_layout_check_glyph_property (hb_face_t *face,
return
true
;
}
HB_INTERNAL
hb_bool_t
hb_bool_t
_hb_ot_layout_skip_mark
(
hb_face_t
*
face
,
hb_internal_glyph_info_t
*
ginfo
,
unsigned
int
lookup_flags
,
...
...
@@ -203,7 +203,7 @@ _hb_ot_layout_skip_mark (hb_face_t *face,
return
false
;
}
HB_INTERNAL
void
void
_hb_ot_layout_set_glyph_class
(
hb_face_t
*
face
,
hb_codepoint_t
glyph
,
hb_ot_layout_glyph_class_t
klass
)
...
...
@@ -252,7 +252,7 @@ _hb_ot_layout_set_glyph_class (hb_face_t *face,
return
;
}
HB_INTERNAL
void
void
_hb_ot_layout_set_glyph_property
(
hb_face_t
*
face
,
hb_codepoint_t
glyph
,
unsigned
int
property
)
...
...
src/hb-private.h
浏览文件 @
081819ea
...
...
@@ -106,7 +106,7 @@ typedef GStaticMutex hb_mutex_t;
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#ifndef HB_INTERNAL
# define HB_INTERNAL
# define HB_INTERNAL
extern
#endif
#ifndef NULL
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录