Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
40c4a991
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
40c4a991
编写于
7月 21, 2015
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[USE] Implement dotted-circle
This makes USE feature-complete as far as the Indic-like features are concerned.
上级
7ce03ebe
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
3 deletion
+25
-3
src/hb-ot-shape-complex-use-machine.rl
src/hb-ot-shape-complex-use-machine.rl
+10
-0
src/hb-ot-shape-complex-use.cc
src/hb-ot-shape-complex-use.cc
+15
-3
未找到文件。
src/hb-ot-shape-complex-use-machine.rl
浏览文件 @
40c4a991
...
...
@@ -116,6 +116,15 @@ vowel_cluster =
final_consonants
;
broken_cluster =
R?
consonant_modifiers
medial_consonants
dependent_vowels
vowel_modifiers
final_consonants
;
number_joiner_terminated_cluster = N VS? (HN N VS?)* H;
numeral_cluster = N VS? (HN N VS?)*;
symbol_cluster = S VS? SMAbv* SMBlw*;
...
...
@@ -129,6 +138,7 @@ main := |*
number_joiner_terminated_cluster => { found_syllable (number_joiner_terminated_cluster); };
numeral_cluster => { found_syllable (numeral_cluster); };
symbol_cluster => { found_syllable (symbol_cluster); };
broken_cluster => { found_syllable (broken_cluster); };
*|;
...
...
src/hb-ot-shape-complex-use.cc
浏览文件 @
40c4a991
...
...
@@ -160,6 +160,7 @@ enum syllable_type_t {
number_joiner_terminated_cluster
,
numeral_cluster
,
symbol_cluster
,
broken_cluster
,
};
#include "hb-ot-shape-complex-use-machine.hh"
...
...
@@ -317,7 +318,9 @@ reorder_syllable (const hb_ot_shape_plan_t *plan,
if
(
unlikely
(
!
(
FLAG_SAFE
(
syllable_type
)
&
(
FLAG
(
virama_terminated_cluster
)
|
FLAG
(
consonant_cluster
)
|
FLAG
(
vowel_cluster
)))))
FLAG
(
vowel_cluster
)
|
FLAG
(
broken_cluster
)
|
0
))))
return
;
hb_glyph_info_t
*
info
=
buffer
->
info
;
...
...
@@ -376,7 +379,6 @@ insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED,
hb_font_t
*
font
,
hb_buffer_t
*
buffer
)
{
#if 0
/* Note: This loop is extra overhead, but should not be measurable. */
bool
has_broken_syllables
=
false
;
unsigned
int
count
=
buffer
->
len
;
...
...
@@ -391,6 +393,10 @@ insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED,
return
;
hb_codepoint_t
dottedcircle_glyph
;
if
(
!
font
->
get_glyph
(
0x25CCu
,
0
,
&
dottedcircle_glyph
))
return
;
hb_glyph_info_t
dottedcircle
=
{
0
};
if
(
!
font
->
get_glyph
(
0x25CCu
,
0
,
&
dottedcircle
.
codepoint
))
return
;
...
...
@@ -412,6 +418,13 @@ insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED,
info
.
cluster
=
buffer
->
cur
().
cluster
;
info
.
mask
=
buffer
->
cur
().
mask
;
info
.
syllable
()
=
buffer
->
cur
().
syllable
();
/* TODO Set glyph_props? */
/* Insert dottedcircle after possible Repha. */
while
(
buffer
->
idx
<
buffer
->
len
&&
last_syllable
==
buffer
->
cur
().
syllable
()
&&
buffer
->
cur
().
use_category
()
==
USE_R
)
buffer
->
next_glyph
();
buffer
->
output_info
(
info
);
}
...
...
@@ -420,7 +433,6 @@ insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED,
}
buffer
->
swap_buffers
();
#endif
}
static
void
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录