Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
d8c69137
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看板
提交
d8c69137
编写于
11月 30, 2018
作者:
M
Michiharu Ariza
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
undo 0u
上级
2c859b38
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
8 deletion
+8
-8
src/hb-cff2-interp-cs.hh
src/hb-cff2-interp-cs.hh
+1
-1
src/hb-ot-cff1-table.hh
src/hb-ot-cff1-table.hh
+2
-2
src/hb-ot-vorg-table.hh
src/hb-ot-vorg-table.hh
+1
-1
src/hb-subset-cff-common.hh
src/hb-subset-cff-common.hh
+2
-2
src/hb-subset-cff1.cc
src/hb-subset-cff1.cc
+2
-2
未找到文件。
src/hb-cff2-interp-cs.hh
浏览文件 @
d8c69137
...
...
@@ -136,7 +136,7 @@ struct CFF2CSInterpEnv : CSInterpEnv<BlendArg, CFF2Subrs>
scalars
.
resize
(
region_count
);
varStore
->
varStore
.
get_scalars
(
get_ivs
(),
(
int
*
)
coords
,
num_coords
,
&
scalars
[
0
u
],
region_count
);
&
scalars
[
0
],
region_count
);
}
seen_blend
=
true
;
}
...
...
src/hb-ot-cff1-table.hh
浏览文件 @
d8c69137
...
...
@@ -1028,7 +1028,7 @@ struct cff1
{
fini
();
return
;
}
{
/* parse top dict */
const
ByteStr
topDictStr
=
(
*
topDictIndex
)[
0
u
];
const
ByteStr
topDictStr
=
(
*
topDictIndex
)[
0
];
if
(
unlikely
(
!
topDictStr
.
sanitize
(
&
sc
)))
{
fini
();
return
;
}
CFF1TopDict_Interpreter
top_interp
;
top_interp
.
env
.
init
(
topDictStr
);
...
...
@@ -1112,7 +1112,7 @@ struct cff1
else
/* non-CID */
{
CFF1TopDictValues
*
font
=
&
topDict
;
PRIVDICTVAL
*
priv
=
&
privateDicts
[
0
u
];
PRIVDICTVAL
*
priv
=
&
privateDicts
[
0
];
const
ByteStr
privDictStr
(
StructAtOffset
<
UnsizedByteStr
>
(
cff
,
font
->
privateDictInfo
.
offset
),
font
->
privateDictInfo
.
size
);
if
(
unlikely
(
!
privDictStr
.
sanitize
(
&
sc
)))
{
fini
();
return
;
}
...
...
src/hb-ot-vorg-table.hh
浏览文件 @
d8c69137
...
...
@@ -93,7 +93,7 @@ struct VORG
unsigned
int
size
=
VertOriginMetric
::
static_size
*
subset_metrics
.
len
;
VertOriginMetric
*
metrics
=
c
.
allocate_size
<
VertOriginMetric
>
(
size
);
if
(
likely
(
metrics
!=
nullptr
))
memcpy
(
metrics
,
&
subset_metrics
[
0
u
],
size
);
memcpy
(
metrics
,
&
subset_metrics
[
0
],
size
);
else
success
=
false
;
}
...
...
src/hb-subset-cff-common.hh
浏览文件 @
d8c69137
...
...
@@ -120,7 +120,7 @@ struct StrEncoder
set_error
();
return
;
}
memcpy
(
&
buff
[
offset
],
&
str
.
str
[
0
u
],
str
.
len
);
memcpy
(
&
buff
[
offset
],
&
str
.
str
[
0
],
str
.
len
);
}
inline
bool
is_error
(
void
)
const
{
return
error
;
}
...
...
@@ -226,7 +226,7 @@ struct CFFFontDict_OpSerializer : OpSerializer
{
HBUINT8
*
d
=
c
->
allocate_size
<
HBUINT8
>
(
opstr
.
str
.
len
);
if
(
unlikely
(
d
==
nullptr
))
return_trace
(
false
);
memcpy
(
d
,
&
opstr
.
str
.
str
[
0
u
],
opstr
.
str
.
len
);
memcpy
(
d
,
&
opstr
.
str
.
str
[
0
],
opstr
.
str
.
len
);
}
return_trace
(
true
);
}
...
...
src/hb-subset-cff1.cc
浏览文件 @
d8c69137
...
...
@@ -599,7 +599,7 @@ struct cff_subset_plan {
hb_subset_plan_t
*
plan
)
{
/* make sure notdef is first */
if
((
plan
->
glyphs
.
len
==
0
)
||
(
plan
->
glyphs
[
0
u
]
!=
0
))
return
false
;
if
((
plan
->
glyphs
.
len
==
0
)
||
(
plan
->
glyphs
[
0
]
!=
0
))
return
false
;
final_size
=
0
;
num_glyphs
=
plan
->
glyphs
.
len
;
...
...
@@ -813,7 +813,7 @@ struct cff_subset_plan {
}
if
(
!
acc
.
is_CID
())
offsets
.
privateDictInfo
=
fontdicts_mod
[
0
u
].
privateDictInfo
;
offsets
.
privateDictInfo
=
fontdicts_mod
[
0
].
privateDictInfo
;
return
((
subset_charstrings
.
len
==
plan
->
glyphs
.
len
)
&&
(
fontdicts_mod
.
len
==
subset_fdcount
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录