Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
4dc798de
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看板
提交
4dc798de
编写于
8月 26, 2013
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add hb-deprecated.h, and rename a couple enum values
Add deprecated alias for old name.
上级
2e3a07ab
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
64 addition
and
15 deletion
+64
-15
src/Makefile.am
src/Makefile.am
+1
-0
src/hb-buffer.cc
src/hb-buffer.cc
+2
-2
src/hb-buffer.h
src/hb-buffer.h
+4
-4
src/hb-common.h
src/hb-common.h
+0
-5
src/hb-deprecated.h
src/hb-deprecated.h
+51
-0
src/hb.h
src/hb.h
+1
-0
src/test-buffer-serialize.cc
src/test-buffer-serialize.cc
+1
-1
test/api/test-buffer.c
test/api/test-buffer.c
+1
-1
util/Makefile.am
util/Makefile.am
+1
-0
util/hb-shape.cc
util/hb-shape.cc
+1
-1
util/options.hh
util/options.hh
+1
-1
未找到文件。
src/Makefile.am
浏览文件 @
4dc798de
...
@@ -63,6 +63,7 @@ HBHEADERS = \
...
@@ -63,6 +63,7 @@ HBHEADERS = \
hb-blob.h
\
hb-blob.h
\
hb-buffer.h
\
hb-buffer.h
\
hb-common.h
\
hb-common.h
\
hb-deprecated.h
\
hb-face.h
\
hb-face.h
\
hb-font.h
\
hb-font.h
\
hb-set.h
\
hb-set.h
\
...
...
src/hb-buffer.cc
浏览文件 @
4dc798de
...
@@ -176,7 +176,7 @@ hb_buffer_t::clear (void)
...
@@ -176,7 +176,7 @@ hb_buffer_t::clear (void)
hb_segment_properties_t
default_props
=
HB_SEGMENT_PROPERTIES_DEFAULT
;
hb_segment_properties_t
default_props
=
HB_SEGMENT_PROPERTIES_DEFAULT
;
props
=
default_props
;
props
=
default_props
;
flags
=
HB_BUFFER_FLAG
S
_DEFAULT
;
flags
=
HB_BUFFER_FLAG_DEFAULT
;
content_type
=
HB_BUFFER_CONTENT_TYPE_INVALID
;
content_type
=
HB_BUFFER_CONTENT_TYPE_INVALID
;
in_error
=
false
;
in_error
=
false
;
...
@@ -624,7 +624,7 @@ hb_buffer_get_empty (void)
...
@@ -624,7 +624,7 @@ hb_buffer_get_empty (void)
const_cast
<
hb_unicode_funcs_t
*>
(
&
_hb_unicode_funcs_nil
),
const_cast
<
hb_unicode_funcs_t
*>
(
&
_hb_unicode_funcs_nil
),
HB_SEGMENT_PROPERTIES_DEFAULT
,
HB_SEGMENT_PROPERTIES_DEFAULT
,
HB_BUFFER_FLAG
S
_DEFAULT
,
HB_BUFFER_FLAG_DEFAULT
,
HB_BUFFER_CONTENT_TYPE_INVALID
,
HB_BUFFER_CONTENT_TYPE_INVALID
,
true
,
/* in_error */
true
,
/* in_error */
...
...
src/hb-buffer.h
浏览文件 @
4dc798de
...
@@ -171,8 +171,8 @@ void
...
@@ -171,8 +171,8 @@ void
hb_buffer_guess_segment_properties
(
hb_buffer_t
*
buffer
);
hb_buffer_guess_segment_properties
(
hb_buffer_t
*
buffer
);
typedef
enum
{
typedef
enum
{
/*< flags >*/
HB_BUFFER_FLAG
S
_DEFAULT
=
0x00000000
,
HB_BUFFER_FLAG_DEFAULT
=
0x00000000
,
HB_BUFFER_FLAG_BOT
=
0x00000001
,
/* Beginning-of-text */
HB_BUFFER_FLAG_BOT
=
0x00000001
,
/* Beginning-of-text */
HB_BUFFER_FLAG_EOT
=
0x00000002
,
/* End-of-text */
HB_BUFFER_FLAG_EOT
=
0x00000002
,
/* End-of-text */
HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
=
0x00000004
HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
=
0x00000004
...
@@ -274,8 +274,8 @@ hb_buffer_normalize_glyphs (hb_buffer_t *buffer);
...
@@ -274,8 +274,8 @@ hb_buffer_normalize_glyphs (hb_buffer_t *buffer);
* Serialize
* Serialize
*/
*/
typedef
enum
{
typedef
enum
{
/*< flags >*/
HB_BUFFER_SERIALIZE_FLAG
S
_DEFAULT
=
0x00000000
,
HB_BUFFER_SERIALIZE_FLAG_DEFAULT
=
0x00000000
,
HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS
=
0x00000001
,
HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS
=
0x00000001
,
HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS
=
0x00000002
,
HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS
=
0x00000002
,
HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
=
0x00000004
HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
=
0x00000004
...
...
src/hb-common.h
浏览文件 @
4dc798de
...
@@ -273,11 +273,6 @@ typedef enum
...
@@ -273,11 +273,6 @@ typedef enum
/*---*/
HB_SCRIPT_INVALID
=
HB_TAG_NONE
/*---*/
HB_SCRIPT_INVALID
=
HB_TAG_NONE
}
hb_script_t
;
}
hb_script_t
;
#ifndef HB_DISABLE_DEPRECATED
/* Deprecated misspelling. */
#define HB_SCRIPT_CANADIAN_ABORIGINAL HB_SCRIPT_CANADIAN_SYLLABICS
#endif
/* These are moved out of hb_script_t because glib-mkenums chokes otherwise. */
/* These are moved out of hb_script_t because glib-mkenums chokes otherwise. */
#if 0
#if 0
/*7.0*/ HB_SCRIPT_BASSA_VAH = HB_TAG ('B','a','s','s'),
/*7.0*/ HB_SCRIPT_BASSA_VAH = HB_TAG ('B','a','s','s'),
...
...
src/hb-deprecated.h
0 → 100644
浏览文件 @
4dc798de
/*
* Copyright © 2013 Google, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copyright notice and the following two paragraphs appear in
* all copies of this software.
*
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
* Google Author(s): Behdad Esfahbod
*/
#ifndef HB_H_IN
#error "Include <hb.h> instead."
#endif
#ifndef HB_DEPRECATED_H
#define HB_DEPRECATED_H
#include "hb-common.h"
#include "hb-unicode.h"
#include "hb-font.h"
HB_BEGIN_DECLS
#ifndef HB_DISABLE_DEPRECATED
#define HB_SCRIPT_CANADIAN_ABORIGINAL HB_SCRIPT_CANADIAN_SYLLABICS
#define HB_BUFFER_FLAGS_DEFAULT HB_BUFFER_FLAG_DEFAULT
#define HB_BUFFER_SERIALIZE_FLAGS_DEFAULT HB_BUFFER_SERIALIZE_FLAG_DEFAULT
#endif
HB_END_DECLS
#endif
/* HB_DEPRECATED_H */
src/hb.h
浏览文件 @
4dc798de
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include "hb-blob.h"
#include "hb-blob.h"
#include "hb-buffer.h"
#include "hb-buffer.h"
#include "hb-common.h"
#include "hb-common.h"
#include "hb-deprecated.h"
#include "hb-face.h"
#include "hb-face.h"
#include "hb-font.h"
#include "hb-font.h"
#include "hb-set.h"
#include "hb-set.h"
...
...
src/test-buffer-serialize.cc
浏览文件 @
4dc798de
...
@@ -114,7 +114,7 @@ main (int argc, char **argv)
...
@@ -114,7 +114,7 @@ main (int argc, char **argv)
hb_buffer_serialize_glyphs
(
buf
,
0
,
hb_buffer_get_length
(
buf
),
hb_buffer_serialize_glyphs
(
buf
,
0
,
hb_buffer_get_length
(
buf
),
out
,
sizeof
(
out
),
NULL
,
out
,
sizeof
(
out
),
NULL
,
font
,
HB_BUFFER_SERIALIZE_FORMAT_JSON
,
font
,
HB_BUFFER_SERIALIZE_FORMAT_JSON
,
HB_BUFFER_SERIALIZE_FLAG
S
_DEFAULT
);
HB_BUFFER_SERIALIZE_FLAG_DEFAULT
);
puts
(
out
);
puts
(
out
);
}
}
...
...
test/api/test-buffer.c
浏览文件 @
4dc798de
...
@@ -110,7 +110,7 @@ test_buffer_properties (fixture_t *fixture, gconstpointer user_data)
...
@@ -110,7 +110,7 @@ test_buffer_properties (fixture_t *fixture, gconstpointer user_data)
g_assert
(
hb_buffer_get_direction
(
b
)
==
HB_DIRECTION_INVALID
);
g_assert
(
hb_buffer_get_direction
(
b
)
==
HB_DIRECTION_INVALID
);
g_assert
(
hb_buffer_get_script
(
b
)
==
HB_SCRIPT_INVALID
);
g_assert
(
hb_buffer_get_script
(
b
)
==
HB_SCRIPT_INVALID
);
g_assert
(
hb_buffer_get_language
(
b
)
==
NULL
);
g_assert
(
hb_buffer_get_language
(
b
)
==
NULL
);
g_assert
(
hb_buffer_get_flags
(
b
)
==
HB_BUFFER_FLAG
S
_DEFAULT
);
g_assert
(
hb_buffer_get_flags
(
b
)
==
HB_BUFFER_FLAG_DEFAULT
);
/* test property changes are retained */
/* test property changes are retained */
...
...
util/Makefile.am
浏览文件 @
4dc798de
...
@@ -9,6 +9,7 @@ MAINTAINERCLEANFILES =
...
@@ -9,6 +9,7 @@ MAINTAINERCLEANFILES =
bin_PROGRAMS
=
bin_PROGRAMS
=
AM_CPPFLAGS
=
\
AM_CPPFLAGS
=
\
-DHB_DISABLE_DEPRECATED
\
-I
$(top_srcdir)
/src/
\
-I
$(top_srcdir)
/src/
\
-I
$(top_builddir)
/src/
\
-I
$(top_builddir)
/src/
\
$(GLIB_CFLAGS)
\
$(GLIB_CFLAGS)
\
...
...
util/hb-shape.cc
浏览文件 @
4dc798de
...
@@ -60,7 +60,7 @@ struct output_buffer_t
...
@@ -60,7 +60,7 @@ struct output_buffer_t
output_format
=
HB_BUFFER_SERIALIZE_FORMAT_TEXT
;
output_format
=
HB_BUFFER_SERIALIZE_FORMAT_TEXT
;
}
}
unsigned
int
flags
=
HB_BUFFER_SERIALIZE_FLAG
S
_DEFAULT
;
unsigned
int
flags
=
HB_BUFFER_SERIALIZE_FLAG_DEFAULT
;
if
(
!
format
.
show_glyph_names
)
if
(
!
format
.
show_glyph_names
)
flags
|=
HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
;
flags
|=
HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES
;
if
(
!
format
.
show_clusters
)
if
(
!
format
.
show_clusters
)
...
...
util/options.hh
浏览文件 @
4dc798de
...
@@ -167,7 +167,7 @@ struct shape_options_t : option_group_t
...
@@ -167,7 +167,7 @@ struct shape_options_t : option_group_t
hb_buffer_set_direction
(
buffer
,
hb_direction_from_string
(
direction
,
-
1
));
hb_buffer_set_direction
(
buffer
,
hb_direction_from_string
(
direction
,
-
1
));
hb_buffer_set_script
(
buffer
,
hb_script_from_string
(
script
,
-
1
));
hb_buffer_set_script
(
buffer
,
hb_script_from_string
(
script
,
-
1
));
hb_buffer_set_language
(
buffer
,
hb_language_from_string
(
language
,
-
1
));
hb_buffer_set_language
(
buffer
,
hb_language_from_string
(
language
,
-
1
));
hb_buffer_set_flags
(
buffer
,
(
hb_buffer_flags_t
)
(
HB_BUFFER_FLAG
S
_DEFAULT
|
hb_buffer_set_flags
(
buffer
,
(
hb_buffer_flags_t
)
(
HB_BUFFER_FLAG_DEFAULT
|
(
bot
?
HB_BUFFER_FLAG_BOT
:
0
)
|
(
bot
?
HB_BUFFER_FLAG_BOT
:
0
)
|
(
eot
?
HB_BUFFER_FLAG_EOT
:
0
)
|
(
eot
?
HB_BUFFER_FLAG_EOT
:
0
)
|
(
preserve_default_ignorables
?
HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
:
0
)));
(
preserve_default_ignorables
?
HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
:
0
)));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录