Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
2e8fb6c3
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,发现更多精彩内容 >>
提交
2e8fb6c3
编写于
5月 18, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Tweak some constants and fix Coverage
上级
d6aae5f5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
8 deletion
+11
-8
src/hb-ot-layout-common-private.h
src/hb-ot-layout-common-private.h
+6
-5
src/hb-ot-layout-gsubgpos-private.h
src/hb-ot-layout-gsubgpos-private.h
+2
-0
src/hb-ot-layout-open-private.h
src/hb-ot-layout-open-private.h
+3
-3
未找到文件。
src/hb-ot-layout-common-private.h
浏览文件 @
2e8fb6c3
...
...
@@ -36,6 +36,7 @@
*
*/
/*
* Script, ScriptList, LangSys, Feature, FeatureList, Lookup, LookupList
*/
...
...
@@ -226,9 +227,9 @@ struct CoverageFormat1 {
private:
inline
unsigned
int
get_coverage
(
hb_codepoint_t
glyph_id
)
const
{
GlyphID
gid
;
if
(
HB_UNLIKELY
(
glyph_id
>
65535
))
if
(
HB_UNLIKELY
(
glyph_id
>
0xFFFF
))
return
NOT_COVERED
;
GlyphID
gid
;
gid
=
glyph_id
;
// TODO: bsearch
unsigned
int
num_glyphs
=
glyphArray
.
len
;
...
...
@@ -251,7 +252,7 @@ struct CoverageRangeRecord {
private:
inline
unsigned
int
get_coverage
(
hb_codepoint_t
glyph_id
)
const
{
if
(
glyph_id
>=
start
&&
glyph_id
<=
end
)
return
startCoverageIndex
+
(
glyph_id
-
start
);
return
(
unsigned
int
)
startCoverageIndex
+
(
glyph_id
-
start
);
return
NOT_COVERED
;
}
...
...
@@ -272,8 +273,8 @@ struct CoverageFormat2 {
// TODO: bsearch
unsigned
int
count
=
rangeRecord
.
len
;
for
(
unsigned
int
i
=
0
;
i
<
count
;
i
++
)
{
int
coverage
=
rangeRecord
[
i
].
get_coverage
(
glyph_id
);
if
(
coverage
>=
0
)
unsigned
int
coverage
=
rangeRecord
[
i
].
get_coverage
(
glyph_id
);
if
(
coverage
!=
NOT_COVERED
)
return
coverage
;
}
return
NOT_COVERED
;
...
...
src/hb-ot-layout-gsubgpos-private.h
浏览文件 @
2e8fb6c3
...
...
@@ -188,6 +188,8 @@ static inline bool apply_lookup (LOOKUP_ARGS_DEF,
lookupRecord
++
;
lookupCount
--
;
i
+=
buffer
->
in_pos
-
old_pos
;
if
(
HB_UNLIKELY
(
buffer
->
in_pos
==
end
))
return
true
;
if
(
!
done
)
goto
not_applied
;
...
...
src/hb-ot-layout-open-private.h
浏览文件 @
2e8fb6c3
...
...
@@ -35,9 +35,9 @@
#define NO_INDEX ((unsigned int) 0xFFFF)
#define NO_CONTEXT ((unsigned int)
-0x2
0000)
#define NOT_COVERED ((unsigned int)
-1
)
#define MAX_NESTING_LEVEL
32
#define NO_CONTEXT ((unsigned int)
0x11
0000)
#define NOT_COVERED ((unsigned int)
0x110000
)
#define MAX_NESTING_LEVEL
8
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录