Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
4a2d844c
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,发现更多精彩内容 >>
提交
4a2d844c
编写于
11月 03, 2010
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor code shuffling
上级
11e3ec44
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
48 addition
and
34 deletion
+48
-34
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+3
-18
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+45
-16
未找到文件。
src/hb-ot-layout-private.hh
浏览文件 @
4a2d844c
...
...
@@ -99,28 +99,13 @@ HB_INTERNAL hb_bool_t
_hb_ot_layout_check_glyph_property
(
hb_face_t
*
face
,
hb_glyph_info_t
*
ginfo
,
unsigned
int
lookup_props
,
unsigned
int
*
property
);
unsigned
int
*
property
_out
);
static
inline
hb_bool_t
HB_INTERNAL
hb_bool_t
_hb_ot_layout_skip_mark
(
hb_face_t
*
face
,
hb_glyph_info_t
*
ginfo
,
unsigned
int
lookup_props
,
unsigned
int
*
property_out
)
{
unsigned
int
property
;
property
=
_hb_ot_layout_get_glyph_property
(
face
,
ginfo
);
if
(
property_out
)
*
property_out
=
property
;
/* If it's a mark, skip it we don't accept it. */
if
(
property
&
HB_OT_LAYOUT_GLYPH_CLASS_MARK
)
return
!
_hb_ot_layout_check_glyph_property
(
face
,
ginfo
,
lookup_props
,
NULL
);
/* If not a mark, don't skip. */
return
false
;
}
unsigned
int
*
property_out
);
HB_END_DECLS
...
...
src/hb-ot-layout.cc
浏览文件 @
4a2d844c
...
...
@@ -115,43 +115,72 @@ _hb_ot_layout_get_glyph_property (hb_face_t *face,
return
info
->
props_cache
();
}
hb_bool_t
_hb_ot_layout_
check_glyph_property
(
hb_face_t
*
face
,
hb_glyph_info_t
*
ginfo
,
unsigned
int
lookup
_props
,
unsigned
int
*
property_out
)
static
hb_bool_t
_hb_ot_layout_
match_properties
(
hb_face_t
*
face
,
hb_codepoint_t
codepoint
,
unsigned
int
glyph
_props
,
unsigned
int
lookup_props
)
{
unsigned
int
property
;
property
=
_hb_ot_layout_get_glyph_property
(
face
,
ginfo
);
if
(
property_out
)
*
property_out
=
property
;
/* Not covered, if, for example, glyph class is ligature and
* lookup_props includes LookupFlags::IgnoreLigatures
*/
if
(
property
&
lookup_props
&
LookupFlag
::
IgnoreFlags
)
if
(
glyph_props
&
lookup_props
&
LookupFlag
::
IgnoreFlags
)
return
false
;
if
(
property
&
HB_OT_LAYOUT_GLYPH_CLASS_MARK
)
if
(
glyph_props
&
HB_OT_LAYOUT_GLYPH_CLASS_MARK
)
{
/* If using mark filtering sets, the high short of
* lookup_props has the set index.
*/
if
(
lookup_props
&
LookupFlag
::
UseMarkFilteringSet
)
return
_get_gdef
(
face
).
mark_set_covers
(
lookup_props
>>
16
,
ginfo
->
codepoint
);
return
_get_gdef
(
face
).
mark_set_covers
(
lookup_props
>>
16
,
codepoint
);
/* The second byte of lookup_props has the meaning
* "ignore marks of attachment type different than
* the attachment type specified."
*/
if
(
lookup_props
&
LookupFlag
::
MarkAttachmentType
&&
property
&
LookupFlag
::
MarkAttachmentType
)
return
(
lookup_props
&
LookupFlag
::
MarkAttachmentType
)
==
(
property
&
LookupFlag
::
MarkAttachmentType
);
if
(
lookup_props
&
LookupFlag
::
MarkAttachmentType
&&
glyph_props
&
LookupFlag
::
MarkAttachmentType
)
return
(
lookup_props
&
LookupFlag
::
MarkAttachmentType
)
==
(
glyph_props
&
LookupFlag
::
MarkAttachmentType
);
}
return
true
;
}
hb_bool_t
_hb_ot_layout_check_glyph_property
(
hb_face_t
*
face
,
hb_glyph_info_t
*
ginfo
,
unsigned
int
lookup_props
,
unsigned
int
*
property_out
)
{
unsigned
int
property
;
property
=
_hb_ot_layout_get_glyph_property
(
face
,
ginfo
);
(
void
)
(
property_out
&&
(
*
property_out
=
property
));
return
_hb_ot_layout_match_properties
(
face
,
ginfo
->
codepoint
,
property
,
lookup_props
);
}
hb_bool_t
_hb_ot_layout_skip_mark
(
hb_face_t
*
face
,
hb_glyph_info_t
*
ginfo
,
unsigned
int
lookup_props
,
unsigned
int
*
property_out
)
{
unsigned
int
property
;
property
=
_hb_ot_layout_get_glyph_property
(
face
,
ginfo
);
(
void
)
(
property_out
&&
(
*
property_out
=
property
));
/* If it's a mark, skip it we don't accept it. */
if
(
unlikely
(
property
&
HB_OT_LAYOUT_GLYPH_CLASS_MARK
))
return
!
_hb_ot_layout_match_properties
(
face
,
ginfo
->
codepoint
,
property
,
lookup_props
);
/* If not a mark, don't skip. */
return
false
;
}
unsigned
int
hb_ot_layout_get_attach_points
(
hb_face_t
*
face
,
hb_codepoint_t
glyph
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录