Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
02a37069
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
11 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
提交
02a37069
编写于
7月 29, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Move direction to buffer
上级
7cda6fa2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
24 addition
and
14 deletion
+24
-14
src/hb-buffer.c
src/hb-buffer.c
+9
-0
src/hb-buffer.h
src/hb-buffer.h
+14
-0
src/hb-ot-layout-gpos-private.h
src/hb-ot-layout-gpos-private.h
+1
-1
src/hb-ot-layout-private.h
src/hb-ot-layout-private.h
+0
-1
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+0
-7
src/hb-ot-layout.h
src/hb-ot-layout.h
+0
-5
未找到文件。
src/hb-buffer.c
浏览文件 @
02a37069
...
...
@@ -166,6 +166,15 @@ hb_buffer_add_glyph (hb_buffer_t *buffer,
buffer
->
in_length
++
;
}
void
hb_buffer_set_direction
(
hb_buffer_t
*
buffer
,
hb_direction_t
direction
)
{
buffer
->
direction
=
direction
;
}
/* HarfBuzz-Internal API */
HB_INTERNAL
void
...
...
src/hb-buffer.h
浏览文件 @
02a37069
...
...
@@ -32,6 +32,13 @@
HB_BEGIN_DECLS
typedef
enum
_hb_direction_t
{
HB_DIRECTION_LTR
,
HB_DIRECTION_RTL
,
HB_DIRECTION_TTB
,
HB_DIRECTION_BTT
}
hb_direction_t
;
/* XXX Hide structs? */
typedef
struct
_hb_glyph_info_t
{
...
...
@@ -72,6 +79,8 @@ typedef struct _hb_buffer_t {
hb_glyph_info_t
*
out_string
;
hb_glyph_info_t
*
alt_string
;
hb_glyph_position_t
*
positions
;
hb_direction_t
direction
;
unsigned
int
max_lig_id
;
}
hb_buffer_t
;
...
...
@@ -94,6 +103,11 @@ hb_buffer_add_glyph (hb_buffer_t *buffer,
unsigned
int
properties
,
unsigned
int
cluster
);
void
hb_buffer_set_direction
(
hb_buffer_t
*
buffer
,
hb_direction_t
direction
);
HB_END_DECLS
#endif
/* HB_BUFFER_H */
src/hb-ot-layout-gpos-private.h
浏览文件 @
02a37069
...
...
@@ -687,7 +687,7 @@ struct CursivePosFormat1
/* TODO vertical */
if
(
gpi
->
r2l
)
if
(
buffer
->
direction
==
HB_DIRECTION_RTL
)
{
POSITION
(
buffer
->
in_pos
)
->
x_advance
=
entry_x
-
gpi
->
anchor_x
;
POSITION
(
buffer
->
in_pos
)
->
new_advance
=
TRUE
;
...
...
src/hb-ot-layout-private.h
浏览文件 @
02a37069
...
...
@@ -52,7 +52,6 @@ struct _hb_ot_layout_t
hb_16dot16_t
x_scale
,
y_scale
;
hb_bool_t
dvi
;
hb_bool_t
r2l
;
unsigned
int
last
;
/* the last valid glyph--used with cursive positioning */
hb_position_t
anchor_x
;
/* the coordinates of the anchor point */
...
...
src/hb-ot-layout.cc
浏览文件 @
02a37069
...
...
@@ -114,13 +114,6 @@ hb_ot_layout_destroy (hb_ot_layout_t *layout)
free
(
layout
);
}
void
hb_ot_layout_set_direction
(
hb_ot_layout_t
*
layout
,
hb_bool_t
r2l
)
{
layout
->
gpos_info
.
r2l
=
!!
r2l
;
}
void
hb_ot_layout_set_hinting
(
hb_ot_layout_t
*
layout
,
hb_bool_t
hinted
)
...
...
src/hb-ot-layout.h
浏览文件 @
02a37069
...
...
@@ -53,11 +53,6 @@ hb_ot_layout_create_for_tables (const char *gdef_data,
void
hb_ot_layout_destroy
(
hb_ot_layout_t
*
layout
);
/* XXX */
void
hb_ot_layout_set_direction
(
hb_ot_layout_t
*
layout
,
hb_bool_t
r2l
);
void
hb_ot_layout_set_hinting
(
hb_ot_layout_t
*
layout
,
hb_bool_t
hinted
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录