Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
a06411ec
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看板
提交
a06411ec
编写于
4月 19, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor matra renumbering
Should have no visible effect.
上级
36608941
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
13 deletion
+17
-13
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+17
-13
未找到文件。
src/hb-ot-shape-complex-indic.cc
浏览文件 @
a06411ec
...
...
@@ -58,10 +58,10 @@ enum indic_category_t {
/* Visual positions in a syllable from left to right. */
enum
indic_position_t
{
POS_PRE
=
1
,
POS_BASE
=
3
,
POS_ABOVE
=
5
,
POS_BELOW
=
7
,
POS_POST
=
9
POS_BASE
=
2
,
POS_ABOVE
=
3
,
POS_BELOW
=
4
,
POS_POST
=
5
};
/* Categories used in IndicSyllabicCategory.txt from UCD */
...
...
@@ -104,14 +104,18 @@ enum indic_matra_category_t {
* in the generic pre-shaping layer. They will only be used if
* the font does not cover the decomposition. In which case, we
* define these as aliases to the place we want the split-matra
* glyph to show up. Quite arbitrary. */
INDIC_MATRA_CATEGORY_BOTTOM_AND_RIGHT
=
INDIC_MATRA_CATEGORY_BOTTOM
,
INDIC_MATRA_CATEGORY_LEFT_AND_RIGHT
=
INDIC_MATRA_CATEGORY_LEFT
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM
=
INDIC_MATRA_CATEGORY_BOTTOM
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM_AND_RIGHT
=
INDIC_MATRA_CATEGORY_BOTTOM
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT
=
INDIC_MATRA_CATEGORY_LEFT
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT_AND_RIGHT
=
INDIC_MATRA_CATEGORY_LEFT
,
INDIC_MATRA_CATEGORY_TOP_AND_RIGHT
=
INDIC_MATRA_CATEGORY_RIGHT
,
* glyph to show up. Quite arbitrary.
*
* TODO: There are some split matras without Unicode decompositions.
* We have to figure out what to do with them.
*/
INDIC_MATRA_CATEGORY_BOTTOM_AND_RIGHT
=
8
|
INDIC_MATRA_CATEGORY_BOTTOM
,
INDIC_MATRA_CATEGORY_LEFT_AND_RIGHT
=
8
|
INDIC_MATRA_CATEGORY_LEFT
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM
=
8
|
INDIC_MATRA_CATEGORY_BOTTOM
,
INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM_AND_RIGHT
=
8
|
INDIC_MATRA_CATEGORY_BOTTOM
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT
=
8
|
INDIC_MATRA_CATEGORY_LEFT
,
INDIC_MATRA_CATEGORY_TOP_AND_LEFT_AND_RIGHT
=
8
|
INDIC_MATRA_CATEGORY_LEFT
,
INDIC_MATRA_CATEGORY_TOP_AND_RIGHT
=
8
|
INDIC_MATRA_CATEGORY_RIGHT
,
INDIC_MATRA_CATEGORY_INVISIBLE
=
INDIC_MATRA_CATEGORY_NOT_APPLICABLE
,
INDIC_MATRA_CATEGORY_OVERSTRUCK
=
INDIC_MATRA_CATEGORY_NOT_APPLICABLE
,
...
...
@@ -392,7 +396,7 @@ _hb_ot_shape_complex_setup_masks_indic (hb_ot_map_t *map, hb_buffer_t *buffer, h
unsigned
int
type
=
get_indic_categories
(
buffer
->
info
[
i
].
codepoint
);
buffer
->
info
[
i
].
indic_category
()
=
type
&
0x0F
;
buffer
->
info
[
i
].
indic_position
()
=
type
>>
4
;
buffer
->
info
[
i
].
indic_position
()
=
(
type
>>
4
)
&
7
;
if
(
buffer
->
info
[
i
].
indic_category
()
==
OT_C
)
{
buffer
->
info
[
i
].
indic_position
()
=
consonant_position
(
buffer
->
info
[
i
].
codepoint
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录