Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
466b3e58
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看板
提交
466b3e58
编写于
2月 03, 2017
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Shuffle things around a bit
上级
fc8189b6
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
24 addition
and
26 deletion
+24
-26
src/hb-coretext.cc
src/hb-coretext.cc
+2
-2
src/hb-directwrite.cc
src/hb-directwrite.cc
+2
-2
src/hb-fallback-shape.cc
src/hb-fallback-shape.cc
+4
-0
src/hb-graphite2.cc
src/hb-graphite2.cc
+2
-2
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+0
-1
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+0
-2
src/hb-ot-math.cc
src/hb-ot-math.cc
+1
-2
src/hb-ot-shape.cc
src/hb-ot-shape.cc
+4
-0
src/hb-ot-var.cc
src/hb-ot-var.cc
+0
-2
src/hb-shape-plan.cc
src/hb-shape-plan.cc
+0
-7
src/hb-shaper-private.hh
src/hb-shaper-private.hh
+7
-4
src/hb-uniscribe.cc
src/hb-uniscribe.cc
+2
-2
未找到文件。
src/hb-coretext.cc
浏览文件 @
466b3e58
...
@@ -69,8 +69,8 @@ hb_coretext_face_create (CGFontRef cg_font)
...
@@ -69,8 +69,8 @@ hb_coretext_face_create (CGFontRef cg_font)
}
}
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
coretext
,
face
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
coretext
,
face
)
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
coretext
,
font
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
coretext
,
font
)
/*
/*
...
...
src/hb-directwrite.cc
浏览文件 @
466b3e58
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
#define HB_DEBUG_DIRECTWRITE (HB_DEBUG+0)
#define HB_DEBUG_DIRECTWRITE (HB_DEBUG+0)
#endif
#endif
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
directwrite
,
face
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
directwrite
,
face
)
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
directwrite
,
font
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
directwrite
,
font
)
/*
/*
...
...
src/hb-fallback-shape.cc
浏览文件 @
466b3e58
...
@@ -28,6 +28,10 @@
...
@@ -28,6 +28,10 @@
#include "hb-shaper-impl-private.hh"
#include "hb-shaper-impl-private.hh"
HB_SHAPER_DATA_ENSURE_DEFINE
(
fallback
,
face
)
HB_SHAPER_DATA_ENSURE_DEFINE
(
fallback
,
font
)
/*
/*
* shaper face data
* shaper face data
*/
*/
...
...
src/hb-graphite2.cc
浏览文件 @
466b3e58
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
#include <graphite2/Segment.h>
#include <graphite2/Segment.h>
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
graphite2
,
face
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
graphite2
,
face
)
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
graphite2
,
font
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
graphite2
,
font
)
/*
/*
...
...
src/hb-ot-layout-private.hh
浏览文件 @
466b3e58
...
@@ -623,5 +623,4 @@ _hb_buffer_assert_gsubgpos_vars (hb_buffer_t *buffer)
...
@@ -623,5 +623,4 @@ _hb_buffer_assert_gsubgpos_vars (hb_buffer_t *buffer)
#undef lig_props
#undef lig_props
#undef glyph_props
#undef glyph_props
#endif
/* HB_OT_LAYOUT_PRIVATE_HH */
#endif
/* HB_OT_LAYOUT_PRIVATE_HH */
src/hb-ot-layout.cc
浏览文件 @
466b3e58
...
@@ -39,8 +39,6 @@
...
@@ -39,8 +39,6 @@
#include "hb-ot-map-private.hh"
#include "hb-ot-map-private.hh"
HB_SHAPER_DATA_ENSURE_DECLARE
(
ot
,
face
)
hb_ot_layout_t
*
hb_ot_layout_t
*
_hb_ot_layout_create
(
hb_face_t
*
face
)
_hb_ot_layout_create
(
hb_face_t
*
face
)
{
{
...
...
src/hb-ot-math.cc
浏览文件 @
466b3e58
...
@@ -26,10 +26,9 @@
...
@@ -26,10 +26,9 @@
#include "hb-open-type-private.hh"
#include "hb-open-type-private.hh"
#include "hb-ot-layout-private.hh"
#include "hb-ot-math-table.hh"
#include "hb-ot-math-table.hh"
HB_SHAPER_DATA_ENSURE_DECLARE
(
ot
,
face
)
static
inline
const
OT
::
MATH
&
static
inline
const
OT
::
MATH
&
_get_math
(
hb_face_t
*
face
)
_get_math
(
hb_face_t
*
face
)
{
{
...
...
src/hb-ot-shape.cc
浏览文件 @
466b3e58
...
@@ -128,6 +128,8 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
...
@@ -128,6 +128,8 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
* shaper face data
* shaper face data
*/
*/
HB_SHAPER_DATA_ENSURE_DEFINE
(
ot
,
face
)
hb_ot_shaper_face_data_t
*
hb_ot_shaper_face_data_t
*
_hb_ot_shaper_face_data_create
(
hb_face_t
*
face
)
_hb_ot_shaper_face_data_create
(
hb_face_t
*
face
)
{
{
...
@@ -145,6 +147,8 @@ _hb_ot_shaper_face_data_destroy (hb_ot_shaper_face_data_t *data)
...
@@ -145,6 +147,8 @@ _hb_ot_shaper_face_data_destroy (hb_ot_shaper_face_data_t *data)
* shaper font data
* shaper font data
*/
*/
HB_SHAPER_DATA_ENSURE_DEFINE
(
ot
,
font
)
struct
hb_ot_shaper_font_data_t
{};
struct
hb_ot_shaper_font_data_t
{};
hb_ot_shaper_font_data_t
*
hb_ot_shaper_font_data_t
*
...
...
src/hb-ot-var.cc
浏览文件 @
466b3e58
...
@@ -32,8 +32,6 @@
...
@@ -32,8 +32,6 @@
#include "hb-ot-var-mvar-table.hh"
#include "hb-ot-var-mvar-table.hh"
#include "hb-ot-var.h"
#include "hb-ot-var.h"
HB_SHAPER_DATA_ENSURE_DECLARE
(
ot
,
face
)
/*
/*
* fvar/avar
* fvar/avar
*/
*/
...
...
src/hb-shape-plan.cc
浏览文件 @
466b3e58
...
@@ -35,13 +35,6 @@
...
@@ -35,13 +35,6 @@
#endif
#endif
#define HB_SHAPER_IMPLEMENT(shaper) \
HB_SHAPER_DATA_ENSURE_DECLARE(shaper, face) \
HB_SHAPER_DATA_ENSURE_DECLARE(shaper, font)
#include "hb-shaper-list.hh"
#undef HB_SHAPER_IMPLEMENT
static
void
static
void
hb_shape_plan_plan
(
hb_shape_plan_t
*
shape_plan
,
hb_shape_plan_plan
(
hb_shape_plan_t
*
shape_plan
,
const
hb_feature_t
*
user_features
,
const
hb_feature_t
*
user_features
,
...
...
src/hb-shaper-private.hh
浏览文件 @
466b3e58
...
@@ -71,22 +71,25 @@ struct hb_shaper_data_t {
...
@@ -71,22 +71,25 @@ struct hb_shaper_data_t {
#define HB_SHAPER_DATA(shaper, object) HB_SHAPER_DATA_INSTANCE(shaper, object, object)
#define HB_SHAPER_DATA(shaper, object) HB_SHAPER_DATA_INSTANCE(shaper, object, object)
#define HB_SHAPER_DATA_CREATE_FUNC(shaper, object) _hb_##shaper##_shaper_##object##_data_create
#define HB_SHAPER_DATA_CREATE_FUNC(shaper, object) _hb_##shaper##_shaper_##object##_data_create
#define HB_SHAPER_DATA_DESTROY_FUNC(shaper, object) _hb_##shaper##_shaper_##object##_data_destroy
#define HB_SHAPER_DATA_DESTROY_FUNC(shaper, object) _hb_##shaper##_shaper_##object##_data_destroy
#define HB_SHAPER_DATA_ENSURE_FUNC(shaper, object) hb_##shaper##_shaper_##object##_data_ensure
#define HB_SHAPER_DATA_PROTOTYPE(shaper, object) \
#define HB_SHAPER_DATA_PROTOTYPE(shaper, object) \
HB_SHAPER_DATA_TYPE (shaper, object);
/* Type forward declaration. */
\
HB_SHAPER_DATA_TYPE (shaper, object);
/* Type forward declaration. */
\
extern "C" HB_INTERNAL HB_SHAPER_DATA_TYPE (shaper, object) * \
extern "C" HB_INTERNAL HB_SHAPER_DATA_TYPE (shaper, object) * \
HB_SHAPER_DATA_CREATE_FUNC (shaper, object) (hb_##object##_t *object HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS); \
HB_SHAPER_DATA_CREATE_FUNC (shaper, object) (hb_##object##_t *object HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS); \
extern "C" HB_INTERNAL void \
extern "C" HB_INTERNAL void \
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA_TYPE (shaper, object) *data)
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA_TYPE (shaper, object) *data); \
extern "C" HB_INTERNAL bool \
HB_SHAPER_DATA_ENSURE_FUNC (shaper, object) (hb_##object##_t *object)
#define HB_SHAPER_DATA_DESTROY(shaper, object) \
#define HB_SHAPER_DATA_DESTROY(shaper, object) \
if (HB_SHAPER_DATA_TYPE (shaper, object) *data = HB_SHAPER_DATA (shaper, object)) \
if (HB_SHAPER_DATA_TYPE (shaper, object) *data = HB_SHAPER_DATA (shaper, object)) \
if (data != HB_SHAPER_DATA_INVALID && data != HB_SHAPER_DATA_SUCCEEDED) \
if (data != HB_SHAPER_DATA_INVALID && data != HB_SHAPER_DATA_SUCCEEDED) \
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (data);
HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (data);
#define HB_SHAPER_DATA_ENSURE_DE
CLAR
E(shaper, object) \
#define HB_SHAPER_DATA_ENSURE_DE
FIN
E(shaper, object) \
static inline
bool \
bool \
hb_##shaper##_shaper_##object##_data_ensure
(hb_##object##_t *object) \
HB_SHAPER_DATA_ENSURE_FUNC(shaper, object)
(hb_##object##_t *object) \
{\
{\
retry: \
retry: \
HB_SHAPER_DATA_TYPE (shaper, object) *data = (HB_SHAPER_DATA_TYPE (shaper, object) *) hb_atomic_ptr_get (&HB_SHAPER_DATA (shaper, object)); \
HB_SHAPER_DATA_TYPE (shaper, object) *data = (HB_SHAPER_DATA_TYPE (shaper, object) *) hb_atomic_ptr_get (&HB_SHAPER_DATA (shaper, object)); \
...
...
src/hb-uniscribe.cc
浏览文件 @
466b3e58
...
@@ -293,8 +293,8 @@ struct range_record_t {
...
@@ -293,8 +293,8 @@ struct range_record_t {
unsigned
int
index_last
;
/* == end - 1 */
unsigned
int
index_last
;
/* == end - 1 */
};
};
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
uniscribe
,
face
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
uniscribe
,
face
)
HB_SHAPER_DATA_ENSURE_DE
CLAR
E
(
uniscribe
,
font
)
HB_SHAPER_DATA_ENSURE_DE
FIN
E
(
uniscribe
,
font
)
/*
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录