Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
84686bf4
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看板
提交
84686bf4
编写于
10月 11, 2017
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[coretext-aat] Also pass through CoreText if font has kerx table
SFNSText has kerx table which apparently is applied.
上级
296d0134
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
11 deletion
+10
-11
src/hb-coretext.cc
src/hb-coretext.cc
+9
-11
src/hb-coretext.h
src/hb-coretext.h
+1
-0
未找到文件。
src/hb-coretext.cc
浏览文件 @
84686bf4
...
...
@@ -1249,22 +1249,20 @@ struct hb_coretext_aat_shaper_face_data_t {};
hb_coretext_aat_shaper_face_data_t
*
_hb_coretext_aat_shaper_face_data_create
(
hb_face_t
*
face
)
{
hb_blob_t
*
mort_blob
=
face
->
reference_table
(
HB_CORETEXT_TAG_MORT
);
/* Umm, we just reference the table to check whether it exists.
* Maybe add better API for this? */
if
(
!
hb_blob_get_length
(
mort_blob
))
static
const
hb_tag_t
tags
[]
=
{
HB_CORETEXT_TAG_MORX
,
HB_CORETEXT_TAG_MORT
,
HB_CORETEXT_TAG_KERX
};
for
(
unsigned
int
i
=
0
;
i
<
ARRAY_LENGTH
(
tags
);
i
++
)
{
hb_blob_destroy
(
mort_blob
);
mort_blob
=
face
->
reference_table
(
HB_CORETEXT_TAG_MORX
);
if
(
!
hb_blob_get_length
(
mort_blob
))
hb_blob_t
*
blob
=
face
->
reference_table
(
tags
[
i
]);
if
(
hb_blob_get_length
(
blob
))
{
hb_blob_destroy
(
mort_
blob
);
return
NULL
;
hb_blob_destroy
(
blob
);
return
hb_coretext_shaper_face_data_ensure
(
face
)
?
(
hb_coretext_aat_shaper_face_data_t
*
)
HB_SHAPER_DATA_SUCCEEDED
:
NULL
;
}
hb_blob_destroy
(
blob
);
}
hb_blob_destroy
(
mort_blob
);
return
hb_coretext_shaper_face_data_ensure
(
face
)
?
(
hb_coretext_aat_shaper_face_data_t
*
)
HB_SHAPER_DATA_SUCCEEDED
:
NULL
;
return
NULL
;
}
void
...
...
src/hb-coretext.h
浏览文件 @
84686bf4
...
...
@@ -42,6 +42,7 @@ HB_BEGIN_DECLS
#define HB_CORETEXT_TAG_MORT HB_TAG('m','o','r','t')
#define HB_CORETEXT_TAG_MORX HB_TAG('m','o','r','x')
#define HB_CORETEXT_TAG_KERX HB_TAG('k','e','r','x')
HB_EXTERN
hb_face_t
*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录