Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
1246e410
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,发现更多精彩内容 >>
提交
1246e410
编写于
5月 26, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[GDEF] Support MarkFilteringSets
上级
5130c35e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
21 addition
and
38 deletion
+21
-38
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+21
-38
未找到文件。
src/hb-ot-layout.cc
浏览文件 @
1246e410
...
@@ -163,7 +163,7 @@ _hb_ot_layout_check_glyph_property (hb_ot_layout_t *layout,
...
@@ -163,7 +163,7 @@ _hb_ot_layout_check_glyph_property (hb_ot_layout_t *layout,
unsigned
int
lookup_flags
,
unsigned
int
lookup_flags
,
unsigned
int
*
property
)
unsigned
int
*
property
)
{
{
hb_ot_layout_glyph_class_t
basic_
glyph_class
;
hb_ot_layout_glyph_class_t
glyph_class
;
unsigned
int
desired_attachment_class
;
unsigned
int
desired_attachment_class
;
if
(
ginfo
->
gproperty
==
HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN
)
if
(
ginfo
->
gproperty
==
HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN
)
...
@@ -180,29 +180,31 @@ _hb_ot_layout_check_glyph_property (hb_ot_layout_t *layout,
...
@@ -180,29 +180,31 @@ _hb_ot_layout_check_glyph_property (hb_ot_layout_t *layout,
* The low byte contains the basic type of the glyph as defined by
* The low byte contains the basic type of the glyph as defined by
* the GlyphClassDef table.
* the GlyphClassDef table.
*/
*/
if
(
*
property
&
LookupFlag
::
MarkAttachmentType
)
glyph_class
=
(
hb_ot_layout_glyph_class_t
)
*
property
;
basic_glyph_class
=
HB_OT_LAYOUT_GLYPH_CLASS_MARK
;
else
basic_glyph_class
=
(
hb_ot_layout_glyph_class_t
)
*
property
;
/* Not covered, if, for example,
basic_glyph_class
/* Not covered, if, for example,
glyph_class is HB_GDEF_LIGATURE and
*
is HB_GDEF_LIGATURE and
lookup_flags includes LookupFlags::IgnoreLigatures
* lookup_flags includes LookupFlags::IgnoreLigatures
*/
*/
if
(
lookup_flags
&
basic_
glyph_class
)
if
(
lookup_flags
&
glyph_class
)
return
false
;
return
false
;
/* The high byte of lookup_flags has the meaning
if
(
glyph_class
&
HB_OT_LAYOUT_GLYPH_CLASS_MARK
)
* "ignore marks of attachment type different than
* the attachment type specified."
*/
desired_attachment_class
=
lookup_flags
&
LookupFlag
::
MarkAttachmentType
;
if
(
desired_attachment_class
)
{
{
if
(
basic_glyph_class
==
HB_OT_LAYOUT_GLYPH_CLASS_MARK
&&
/* If using mark filtering sets, the high short of
*
property
!=
desired_attachment_class
)
* lookup_flags hsa the set index.
return
false
;
*/
if
(
lookup_flags
&
LookupFlag
::
UseMarkFilteringSet
)
return
layout
->
gdef
->
mark_set_covers
(
lookup_flags
>>
16
,
ginfo
->
gindex
);
/* The second byte of lookup_flags has the meaning
* "ignore marks of attachment type different than
* the attachment type specified."
*/
if
(
lookup_flags
&
LookupFlag
::
MarkAttachmentType
&&
*
property
&
LookupFlag
::
MarkAttachmentType
)
return
(
lookup_flags
&
LookupFlag
::
MarkAttachmentType
)
==
(
*
property
&
LookupFlag
::
MarkAttachmentType
);
}
}
return
true
;
return
true
;
}
}
...
@@ -210,32 +212,13 @@ HB_INTERNAL void
...
@@ -210,32 +212,13 @@ HB_INTERNAL void
_hb_ot_layout_set_glyph_property
(
hb_ot_layout_t
*
layout
,
_hb_ot_layout_set_glyph_property
(
hb_ot_layout_t
*
layout
,
hb_codepoint_t
glyph
,
hb_codepoint_t
glyph
,
unsigned
int
property
)
unsigned
int
property
)
{
{
hb_ot_layout_set_glyph_class
(
layout
,
glyph
,
(
hb_ot_layout_glyph_class_t
)
(
property
&
0xff
));
}
hb_ot_layout_glyph_class_t
klass
;
if
(
property
&
LookupFlag
::
MarkAttachmentType
)
klass
=
HB_OT_LAYOUT_GLYPH_CLASS_MARK
;
else
klass
=
(
hb_ot_layout_glyph_class_t
)
property
;
hb_ot_layout_set_glyph_class
(
layout
,
glyph
,
klass
);
}
hb_ot_layout_glyph_class_t
hb_ot_layout_glyph_class_t
hb_ot_layout_get_glyph_class
(
hb_ot_layout_t
*
layout
,
hb_ot_layout_get_glyph_class
(
hb_ot_layout_t
*
layout
,
hb_codepoint_t
glyph
)
hb_codepoint_t
glyph
)
{
{
return
(
hb_ot_layout_glyph_class_t
)
(
_hb_ot_layout_get_glyph_property
(
layout
,
glyph
)
&
0xff
);
}
unsigned
int
property
;
hb_ot_layout_class_t
klass
;
property
=
_hb_ot_layout_get_glyph_property
(
layout
,
glyph
);
if
(
property
&
LookupFlag
::
MarkAttachmentType
)
return
HB_OT_LAYOUT_GLYPH_CLASS_MARK
;
return
(
hb_ot_layout_glyph_class_t
)
property
;
}
void
void
hb_ot_layout_set_glyph_class
(
hb_ot_layout_t
*
layout
,
hb_ot_layout_set_glyph_class
(
hb_ot_layout_t
*
layout
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录