Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
13403bc6
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看板
提交
13403bc6
编写于
10月 12, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Hookup Arabic shaper!
Not tested yet.
上级
57ac0ecb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
20 deletion
+40
-20
src/hb-ot-shape-complex-arabic.cc
src/hb-ot-shape-complex-arabic.cc
+3
-3
src/hb-ot-shape-complex-private.hh
src/hb-ot-shape-complex-private.hh
+22
-15
src/hb-ot-shape-private.hh
src/hb-ot-shape-private.hh
+13
-1
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+2
-1
未找到文件。
src/hb-ot-shape-complex-arabic.cc
浏览文件 @
13403bc6
...
...
@@ -24,7 +24,7 @@
* Google Author(s): Behdad Esfahbod
*/
#include "hb-ot-shape-private.hh"
#include "hb-ot-shape-
complex-
private.hh"
HB_BEGIN_DECLS
...
...
@@ -679,7 +679,7 @@ _hb_ot_shape_complex_collect_features_arabic (hb_ot_shape_plan_t *plan, const hb
}
void
_hb_ot_
analyze_complex_arabic
(
hb_ot_shape_context_t
*
c
)
_hb_ot_
shape_complex_setup_masks_arabic
(
hb_ot_shape_context_t
*
c
)
{
unsigned
int
count
=
c
->
buffer
->
len
;
unsigned
int
prev
=
0
,
state
=
0
;
...
...
@@ -705,7 +705,7 @@ _hb_ot_analyze_complex_arabic (hb_ot_shape_context_t *c)
hb_mask_t
mask_array
[
TOTAL_NUM_FEATURES
]
=
{
0
};
unsigned
int
num_masks
=
c
->
buffer
->
props
.
script
==
HB_SCRIPT_SYRIAC
?
SYRIAC_NUM_FEATURES
:
COMMON_NUM_FEATURES
;
for
(
unsigned
int
i
=
0
;
i
<
num_masks
;
i
++
)
mask_array
[
i
]
=
0
/* XXX find_mask */
;
mask_array
[
i
]
=
c
->
plan
->
map
.
get_mask
(
arabic_syriac_features
[
i
])
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
c
->
buffer
->
info
[
i
].
mask
|=
mask_array
[
c
->
buffer
->
info
[
i
].
gproperty
];
...
...
src/hb-ot-shape-complex-private.hh
浏览文件 @
13403bc6
...
...
@@ -29,24 +29,11 @@
#include "hb-private.h"
#include "hb-ot-
map
-private.hh"
#include "hb-ot-
shape
-private.hh"
HB_BEGIN_DECLS
enum
hb_ot_complex_shaper_t
{
hb_ot_complex_shaper_none
,
hb_ot_complex_shaper_arabic
};
struct
hb_ot_shape_plan_t
{
hb_ot_map_t
map
;
hb_ot_complex_shaper_t
shaper
;
};
static
inline
hb_ot_complex_shaper_t
hb_ot_shape_complex_categorize
(
const
hb_segment_properties_t
*
props
)
{
...
...
@@ -66,7 +53,9 @@ hb_ot_shape_complex_categorize (const hb_segment_properties_t *props)
/*
* collect_features()
*
* Called during planning. Shapers should call plan->map.add_feature().
* Called during shape_plan().
*
* Shapers should use plan->map to add their features.
*/
HB_INTERNAL
void
_hb_ot_shape_complex_collect_features_arabic
(
hb_ot_shape_plan_t
*
plan
,
const
hb_segment_properties_t
*
props
);
...
...
@@ -82,6 +71,24 @@ hb_ot_shape_complex_collect_features (hb_ot_shape_plan_t *plan,
}
/* setup_masks()
*
* Called during shape_execute().
*
* Shapers should use c->plan.map to get feature masks and set on buffer.
*/
HB_INTERNAL
void
_hb_ot_shape_complex_setup_masks_arabic
(
hb_ot_shape_context_t
*
c
);
static
inline
void
hb_ot_shape_complex_setup_masks
(
hb_ot_shape_context_t
*
c
)
{
switch
(
c
->
plan
->
shaper
)
{
case
hb_ot_complex_shaper_arabic
:
_hb_ot_shape_complex_setup_masks_arabic
(
c
);
return
;
case
hb_ot_complex_shaper_none
:
default
:
return
;
}
}
HB_END_DECLS
...
...
src/hb-ot-shape-private.hh
浏览文件 @
13403bc6
...
...
@@ -31,11 +31,23 @@
#include "hb-ot-shape.h"
#include "hb-ot-shape-complex-private.hh"
#include "hb-ot-map-private.hh"
HB_BEGIN_DECLS
enum
hb_ot_complex_shaper_t
{
hb_ot_complex_shaper_none
,
hb_ot_complex_shaper_arabic
};
struct
hb_ot_shape_plan_t
{
hb_ot_map_t
map
;
hb_ot_complex_shaper_t
shaper
;
};
struct
hb_ot_shape_context_t
{
/* Input to hb_ot_shape_execute() */
...
...
src/hb-ot-shape.cc
浏览文件 @
13403bc6
...
...
@@ -27,6 +27,7 @@
*/
#include "hb-ot-shape-private.hh"
#include "hb-ot-shape-complex-private.hh"
HB_BEGIN_DECLS
...
...
@@ -95,7 +96,7 @@ hb_ot_shape_setup_masks (hb_ot_shape_context_t *c)
}
}
/* complex */
hb_ot_shape_complex_setup_masks
(
c
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录