Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
15164d92
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,发现更多精彩内容 >>
提交
15164d92
编写于
8月 04, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Fix mix warnings
上级
42b778f8
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
15 addition
and
27 deletion
+15
-27
src/Makefile.am
src/Makefile.am
+1
-1
src/hb-font.cc
src/hb-font.cc
+3
-12
src/hb-open-types-private.hh
src/hb-open-types-private.hh
+1
-1
src/hb-ot-layout-common-private.hh
src/hb-ot-layout-common-private.hh
+3
-3
src/hb-ot-layout-gdef-private.hh
src/hb-ot-layout-gdef-private.hh
+1
-1
src/hb-ot-layout-gpos-private.hh
src/hb-ot-layout-gpos-private.hh
+4
-5
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+1
-1
src/main.cc
src/main.cc
+1
-3
未找到文件。
src/Makefile.am
浏览文件 @
15164d92
...
...
@@ -2,7 +2,7 @@
NULL
=
CXX
=
gcc
-g
-O2
-fno-rtti
-fno-exceptions
-Wabi
-Wpadded
-Wcast-align
CXX
=
$(CC)
-fno-rtti
-fno-exceptions
-Wabi
-Wpadded
-Wcast-align
noinst_LTLIBRARIES
=
libharfbuzz-1.la
...
...
src/hb-font.cc
浏览文件 @
15164d92
...
...
@@ -161,8 +161,8 @@ hb_unicode_callbacks_copy (hb_unicode_callbacks_t *other_ucallbacks)
* hb_face_t
*/
hb_blob_t
*
_hb_face_get_table
(
hb_tag_t
tag
,
void
*
user_data
)
static
hb_blob_t
*
_hb_face_get_table
_from_blob
(
hb_tag_t
tag
,
void
*
user_data
)
{
hb_face_t
*
face
=
(
hb_face_t
*
)
user_data
;
const
char
*
data
=
hb_blob_lock
(
face
->
blob
);
...
...
@@ -181,15 +181,6 @@ _hb_face_get_table (hb_tag_t tag, void *user_data)
return
blob
;
}
void
_hb_face_destroy_blob
(
void
*
user_data
)
{
hb_face_t
*
face
=
(
hb_face_t
*
)
user_data
;
hb_blob_destroy
(
face
->
blob
);
face
->
blob
=
NULL
;
}
static
hb_face_t
_hb_face_nil
=
{
HB_REFERENCE_COUNT_INVALID
,
/* ref_count */
...
...
@@ -237,7 +228,7 @@ hb_face_create_for_data (hb_blob_t *blob,
face
->
blob
=
hb_blob_reference
(
blob
);
face
->
index
=
index
;
face
->
get_table
=
_hb_face_get_table
;
face
->
get_table
=
_hb_face_get_table
_from_blob
;
face
->
user_data
=
face
;
_hb_ot_layout_init
(
face
);
...
...
src/hb-open-types-private.hh
浏览文件 @
15164d92
...
...
@@ -447,8 +447,8 @@ struct HeadlessArrayOf
inline
bool
sanitize
(
SANITIZE_ARG_DEF
)
{
if
(
!
SANITIZE_GET_SIZE
())
return
false
;
unsigned
int
count
=
len
?
len
-
1
:
0
;
/* Note; for non-recursive types, this is not much needed
unsigned int count = len ? len - 1 : 0;
for (unsigned int i = 0; i < count; i++)
if (!SANITIZE (array[i]))
return false;
...
...
src/hb-ot-layout-common-private.hh
浏览文件 @
15164d92
...
...
@@ -90,7 +90,7 @@ struct Feature;
struct
LangSys
{
inline
const
unsigned
int
get_feature_index
(
unsigned
int
i
)
const
{
return
featureIndex
[
i
];
}
inline
unsigned
int
get_feature_index
(
unsigned
int
i
)
const
{
return
featureIndex
[
i
];
}
inline
unsigned
int
get_feature_count
(
void
)
const
{
return
featureIndex
.
len
;
}
inline
bool
has_required_feature
(
void
)
const
{
return
reqFeatureIndex
!=
0xffff
;
}
...
...
@@ -152,7 +152,7 @@ ASSERT_SIZE (ScriptList, 2);
struct
Feature
{
inline
const
unsigned
int
get_lookup_index
(
unsigned
int
i
)
const
{
return
lookupIndex
[
i
];
}
inline
unsigned
int
get_lookup_index
(
unsigned
int
i
)
const
{
return
lookupIndex
[
i
];
}
inline
unsigned
int
get_lookup_count
(
void
)
const
{
return
lookupIndex
.
len
;
}
inline
bool
sanitize
(
SANITIZE_ARG_DEF
)
{
...
...
@@ -513,7 +513,7 @@ struct Device
int
delta
=
bits
&
mask
;
if
(
delta
>=
((
mask
+
1
)
>>
1
))
if
(
(
unsigned
int
)
delta
>=
((
mask
+
1
)
>>
1
))
delta
-=
mask
+
1
;
return
delta
;
...
...
src/hb-ot-layout-gdef-private.hh
浏览文件 @
15164d92
...
...
@@ -128,7 +128,7 @@ struct CaretValueFormat3
{
/* XXX vertical */
return
context
->
font
->
x_scale
*
coordinate
/
0x10000
+
(
this
+
deviceTable
).
get_delta
(
context
->
font
->
x_ppem
)
<<
6
;
(
(
this
+
deviceTable
).
get_delta
(
context
->
font
->
x_ppem
)
<<
6
)
;
}
private:
...
...
src/hb-ot-layout-gpos-private.hh
浏览文件 @
15164d92
...
...
@@ -57,14 +57,13 @@ struct ValueFormat : USHORT
inline
unsigned
int
get_size
()
const
{
return
get_len
()
*
sizeof
(
Value
);
}
const
void
apply_value
(
hb_ot_layout_context_t
*
context
,
const
char
*
base
,
const
Value
*
values
,
hb_internal_glyph_position_t
*
glyph_pos
)
const
void
apply_value
(
hb_ot_layout_context_t
*
context
,
const
char
*
base
,
const
Value
*
values
,
hb_internal_glyph_position_t
*
glyph_pos
)
const
{
unsigned
int
x_ppem
,
y_ppem
;
hb_16dot16_t
x_scale
,
y_scale
;
unsigned
int
pixel_value
;
unsigned
int
format
=
*
this
;
if
(
!
format
)
...
...
src/hb-ot-layout.cc
浏览文件 @
15164d92
...
...
@@ -217,7 +217,7 @@ _hb_ot_layout_set_glyph_class (hb_face_t *face,
hb_ot_layout_t
*
layout
=
&
face
->
ot_layout
;
hb_ot_layout_class_t
gdef_klass
;
int
len
=
layout
->
new_gdef
.
len
;
unsigned
int
len
=
layout
->
new_gdef
.
len
;
if
(
HB_UNLIKELY
(
glyph
>
65535
))
return
;
...
...
src/main.cc
浏览文件 @
15164d92
...
...
@@ -74,7 +74,7 @@ main (int argc, char **argv)
printf
(
" %d table(s) found in font
\n
"
,
num_tables
);
for
(
int
n_table
=
0
;
n_table
<
num_tables
;
n_table
++
)
{
const
OpenTypeTable
&
table
=
font
.
get_table
(
n_table
);
printf
(
" Table %2d of %2d: %.4s (0x%08
lx+0x%08l
x)
\n
"
,
n_table
,
num_tables
,
printf
(
" Table %2d of %2d: %.4s (0x%08
x+0x%08
x)
\n
"
,
n_table
,
num_tables
,
(
const
char
*
)
table
.
tag
,
(
unsigned
int
)
table
.
offset
,
(
unsigned
int
)
table
.
length
);
...
...
@@ -112,7 +112,6 @@ main (int argc, char **argv)
int
num_features
=
langsys
.
get_feature_count
();
printf
(
" %d feature(s) found in language system
\n
"
,
num_features
);
for
(
int
n_feature
=
0
;
n_feature
<
num_features
;
n_feature
++
)
{
unsigned
int
feature_index
=
langsys
.
get_feature_index
(
n_feature
);
printf
(
" Feature index %2d of %2d: %d
\n
"
,
n_feature
,
num_features
,
langsys
.
get_feature_index
(
n_feature
));
}
...
...
@@ -130,7 +129,6 @@ main (int argc, char **argv)
int
num_lookups
=
feature
.
get_lookup_count
();
printf
(
" %d lookup(s) found in feature
\n
"
,
num_lookups
);
for
(
int
n_lookup
=
0
;
n_lookup
<
num_lookups
;
n_lookup
++
)
{
unsigned
int
lookup_index
=
feature
.
get_lookup_index
(
n_lookup
);
printf
(
" Lookup index %2d of %2d: %d
\n
"
,
n_lookup
,
num_lookups
,
feature
.
get_lookup_index
(
n_lookup
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录