Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
aae28470
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看板
提交
aae28470
编写于
2月 18, 2016
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Emoji skin tone modifiers need to be treated as combining marks
Fixes
https://github.com/behdad/harfbuzz/issues/169
上级
da41e48f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
3 deletion
+17
-3
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+14
-1
src/hb-unicode-private.hh
src/hb-unicode-private.hh
+3
-2
未找到文件。
src/hb-ot-layout-private.hh
浏览文件 @
aae28470
...
...
@@ -256,8 +256,11 @@ _hb_glyph_info_set_unicode_props (hb_glyph_info_t *info, hb_buffer_t *buffer)
if
(
u
==
0x200Cu
)
props
|=
UPROPS_MASK_ZWNJ
;
if
(
u
==
0x200Du
)
props
|=
UPROPS_MASK_ZWJ
;
}
else
if
(
unlikely
(
HB_UNICODE_GENERAL_CATEGORY_IS_NON_ENCLOSING_MARK
(
gen_cat
)))
else
if
(
unlikely
(
HB_UNICODE_GENERAL_CATEGORY_IS_NON_ENCLOSING_MARK
_OR_MODIFIER_SYMBOL
(
gen_cat
)))
{
/* The above check is just an optimization to let in only things we need further
* processing on. */
/* Only Mn and Mc can have non-zero ccc:
* http://www.unicode.org/policies/stability_policy.html#Property_Value
* """
...
...
@@ -272,6 +275,16 @@ _hb_glyph_info_set_unicode_props (hb_glyph_info_t *info, hb_buffer_t *buffer)
* the "else if".
*/
props
|=
unicode
->
modified_combining_class
(
info
->
codepoint
)
<<
8
;
/* Recategorize emoji skin-tone modifiers as Unicode mark, so they
* behave correctly in non-native directionality. They originally
* are MODIFIER_SYMBOL. Fixes:
* https://github.com/behdad/harfbuzz/issues/169
*/
if
(
unlikely
(
hb_in_range
(
u
,
0x1F3FBu
,
0x1F3FFu
)))
{
props
=
gen_cat
=
HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK
;
}
}
}
...
...
src/hb-unicode-private.hh
浏览文件 @
aae28470
...
...
@@ -357,9 +357,10 @@ extern HB_INTERNAL const hb_unicode_funcs_t _hb_unicode_funcs_nil;
FLAG (HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) | \
FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)))
#define HB_UNICODE_GENERAL_CATEGORY_IS_NON_ENCLOSING_MARK(gen_cat) \
#define HB_UNICODE_GENERAL_CATEGORY_IS_NON_ENCLOSING_MARK
_OR_MODIFIER_SYMBOL
(gen_cat) \
(FLAG_SAFE (gen_cat) & \
(FLAG (HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK) | \
FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)))
FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) | \
FLAG (HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL)))
#endif
/* HB_UNICODE_PRIVATE_HH */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录