Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
baec684f
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看板
提交
baec684f
编写于
8月 01, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Remove glib dependency
上级
df660287
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
22 addition
and
18 deletion
+22
-18
src/Makefile.am
src/Makefile.am
+2
-5
src/hb-buffer.c
src/hb-buffer.c
+1
-1
src/hb-private.h
src/hb-private.h
+18
-12
src/main.cc
src/main.cc
+1
-0
未找到文件。
src/Makefile.am
浏览文件 @
baec684f
...
...
@@ -2,10 +2,6 @@
NULL
=
INCLUDES
=
\
-I
$(srcdir)
\
$(FREETYPE_CFLAGS)
\
$(GLIB_CFLAGS)
CXX
=
gcc
-g
-O2
-fno-rtti
-fno-exceptions
-Wabi
-Wpadded
-Wcast-align
noinst_LTLIBRARIES
=
libharfbuzz-1.la
...
...
@@ -37,11 +33,12 @@ HBHEADERS = \
$(NULL)
libharfbuzz_1_la_SOURCES
=
$(HBSOURCES)
$(HBHEADERS)
libharfbuzz_1_la_LIBADD
=
$(FREETYPE_LIBS)
libharfbuzz_1_la_LIBADD
=
noinst_PROGRAMS
=
main
main_SOURCES
=
main.cc
main_CXXFLAGS
=
$(GLIB_CFLAGS)
main_LDADD
=
$(GLIB_LIBS)
EXTRA_DIST
=
README COPYING
...
...
src/hb-buffer.c
浏览文件 @
baec684f
...
...
@@ -269,7 +269,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
for
(
i
=
0
;
i
<
num_out
;
i
++
)
{
hb_glyph_info_t
*
info
=
&
buffer
->
out_string
[
buffer
->
out_pos
+
i
];
info
->
gindex
=
hb_be_uint16
_t
(
glyph_data_be
[
i
]);
info
->
gindex
=
hb_be_uint16
(
glyph_data_be
[
i
]);
info
->
properties
=
properties
;
info
->
cluster
=
cluster
;
info
->
component
=
component
;
...
...
src/hb-private.h
浏览文件 @
baec684f
...
...
@@ -38,18 +38,6 @@
#include "hb-common.h"
#include <glib.h>
/* Macros to convert to/from BigEndian */
#define hb_be_uint8
#define hb_be_int8
#define hb_be_uint16 GUINT16_TO_BE
#define hb_be_int16 GINT16_TO_BE
#define hb_be_uint32 GUINT32_TO_BE
#define hb_be_int32 GINT32_TO_BE
#define hb_be_uint64 GUINT64_TO_BE
#define hb_be_int64 GINT64_TO_BE
/* Basics */
#undef MIN
...
...
@@ -150,6 +138,24 @@ _hb_popcount32 (uint32_t mask)
#endif
}
static
HB_GNUC_UNUSED
inline
uint16_t
_hb_be_uint16
(
uint16_t
v
)
{
return
(
v
>>
8
)
+
(
v
<<
8
);
}
static
HB_GNUC_UNUSED
inline
uint32_t
_hb_be_uint32
(
uint32_t
v
)
{
return
_hb_be_uint16
(
v
>>
16
)
+
(
_hb_be_uint16
(
v
)
<<
16
);
}
/* Macros to convert to/from BigEndian */
#define hb_be_uint8
#define hb_be_int8
#define hb_be_uint16(v) _hb_be_uint16 (v)
#define hb_be_int16(v) ((int16_t) hb_be_uint16 (v))
#define hb_be_uint32(v) _hb_be_uint32 (v)
#define hb_be_int32(v) ((int32_t) hb_be_uint32 (v))
#include "hb-object-private.h"
...
...
src/main.cc
浏览文件 @
baec684f
...
...
@@ -29,6 +29,7 @@
#include "hb-ot-layout-gdef-private.h"
#include "hb-ot-layout-gsub-private.h"
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录