Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
cee71874
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,发现更多精彩内容 >>
提交
cee71874
编写于
5月 11, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Indic] Move syllable tracking from Indic to generic layer
This is to incorporate it into GSUB/GPOS processing.
上级
3bf27a9f
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
16 addition
and
19 deletion
+16
-19
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gpos-table.hh
+1
-0
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout-gsub-table.hh
+2
-1
src/hb-ot-layout-gsubgpos-private.hh
src/hb-ot-layout-gsubgpos-private.hh
+0
-3
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+1
-3
src/hb-ot-shape-complex-indic-machine.rl
src/hb-ot-shape-complex-indic-machine.rl
+1
-1
src/hb-ot-shape-complex-indic-private.hh
src/hb-ot-shape-complex-indic-private.hh
+0
-1
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+3
-5
src/hb-ot-shape-complex-private.hh
src/hb-ot-shape-complex-private.hh
+8
-5
未找到文件。
src/hb-ot-layout-gpos-table.hh
浏览文件 @
cee71874
...
...
@@ -1501,6 +1501,7 @@ GPOS::position_finish (hb_buffer_t *buffer)
for
(
unsigned
int
i
=
0
;
i
<
len
;
i
++
)
fix_mark_attachment
(
pos
,
i
,
direction
);
HB_BUFFER_DEALLOCATE_VAR
(
buffer
,
syllable
);
HB_BUFFER_DEALLOCATE_VAR
(
buffer
,
lig_props
);
HB_BUFFER_DEALLOCATE_VAR
(
buffer
,
props_cache
);
}
...
...
src/hb-ot-layout-gsub-table.hh
浏览文件 @
cee71874
...
...
@@ -1169,10 +1169,11 @@ GSUB::substitute_start (hb_buffer_t *buffer)
{
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
props_cache
);
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
lig_props
);
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
syllable
);
unsigned
int
count
=
buffer
->
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
buffer
->
info
[
i
].
props_cache
()
=
buffer
->
info
[
i
].
lig_props
()
=
0
;
buffer
->
info
[
i
].
props_cache
()
=
buffer
->
info
[
i
].
lig_props
()
=
buffer
->
info
[
i
].
syllable
()
=
0
;
}
void
...
...
src/hb-ot-layout-gsubgpos-private.hh
浏览文件 @
cee71874
...
...
@@ -34,9 +34,6 @@
/* buffer var allocations */
#define lig_props() var2.u8[3]
/* unique ligature id */
/* component number in the ligature (0 = base) */
static
inline
void
...
...
src/hb-ot-layout-private.hh
浏览文件 @
cee71874
...
...
@@ -33,6 +33,7 @@
#include "hb-font-private.hh"
#include "hb-buffer-private.hh"
#include "hb-ot-shape-complex-private.hh"
...
...
@@ -40,9 +41,6 @@
* GDEF
*/
/* buffer var allocations */
#define props_cache() var1.u16[1]
/* glyph_props cache */
/* XXX cleanup */
typedef
enum
{
HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED
=
0x0001
,
...
...
src/hb-ot-shape-complex-indic-machine.rl
浏览文件 @
cee71874
...
...
@@ -66,7 +66,7 @@ action found_non_indic { initial_reordering_non_indic (map, buffer, mask_array,
action next_syllable {
for (unsigned int i = last; i < p; i++)
info[i].
indic_
syllable() = syllable_serial;
info[i].syllable() = syllable_serial;
last = p;
syllable_serial++;
}
...
...
src/hb-ot-shape-complex-indic-private.hh
浏览文件 @
cee71874
...
...
@@ -36,7 +36,6 @@
/* buffer var allocations */
#define indic_category() complex_var_persistent_u8_0()
/* indic_category_t */
#define indic_position() complex_var_persistent_u8_1()
/* indic_matra_category_t */
#define indic_syllable() complex_var_persistent_u8_2()
/* serial */
#define INDIC_TABLE_ELEMENT_TYPE uint8_t
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
cee71874
...
...
@@ -168,7 +168,6 @@ _hb_ot_shape_complex_setup_masks_indic (hb_ot_map_t *map, hb_buffer_t *buffer, h
{
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
indic_category
);
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
indic_position
);
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
indic_syllable
);
/* We cannot setup masks here. We save information about characters
* and setup masks later on in a pause-callback. */
...
...
@@ -697,16 +696,15 @@ final_reordering (const hb_ot_map_t *map,
hb_glyph_info_t
*
info
=
buffer
->
info
;
unsigned
int
last
=
0
;
unsigned
int
last_syllable
=
info
[
0
].
indic_
syllable
();
unsigned
int
last_syllable
=
info
[
0
].
syllable
();
for
(
unsigned
int
i
=
1
;
i
<
count
;
i
++
)
if
(
last_syllable
!=
info
[
i
].
indic_
syllable
())
{
if
(
last_syllable
!=
info
[
i
].
syllable
())
{
final_reordering_syllable
(
buffer
,
last
,
i
);
last
=
i
;
last_syllable
=
info
[
last
].
indic_
syllable
();
last_syllable
=
info
[
last
].
syllable
();
}
final_reordering_syllable
(
buffer
,
last
,
count
);
HB_BUFFER_DEALLOCATE_VAR
(
buffer
,
indic_syllable
);
HB_BUFFER_DEALLOCATE_VAR
(
buffer
,
indic_category
);
HB_BUFFER_DEALLOCATE_VAR
(
buffer
,
indic_position
);
}
...
...
src/hb-ot-shape-complex-private.hh
浏览文件 @
cee71874
...
...
@@ -38,12 +38,15 @@
#define unicode_props0() var1.u8[0]
#define unicode_props1() var1.u8[1]
/* buffer var allocations, used during the GSUB/GPOS processing */
#define props_cache() var1.u16[1]
/* GSUB/GPOS glyph_props cache */
#define syllable() var2.u8[0]
/* GSUB/GPOS shaping boundaries */
#define lig_props() var2.u8[1]
/* GSUB/GPOS ligature tracking */
/* buffer var allocations, used by complex shapers */
#define complex_var_persistent_u8_0() var2.u8[0]
#define complex_var_persistent_u8_1() var2.u8[1]
#define complex_var_persistent_u8_2() var2.u8[2]
#define complex_var_persistent_u16() var2.u16[0]
#define complex_var_temporary_u8() var2.u8[3]
#define complex_var_persistent_u8_0() var2.u8[2]
#define complex_var_persistent_u8_1() var2.u8[3]
#define complex_var_temporary_u8() var2.u8[0]
#define HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录