Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
0090dc0f
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,发现更多精彩内容 >>
提交
0090dc0f
编写于
7月 30, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Remove hinting setting and use ppem==0 to mean "no hinting"
上级
f0954d1e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
33 addition
and
28 deletion
+33
-28
src/hb-blob.h
src/hb-blob.h
+0
-3
src/hb-common.h
src/hb-common.h
+9
-0
src/hb-ot-layout-gpos-private.h
src/hb-ot-layout-gpos-private.h
+24
-12
src/hb-ot-layout-private.h
src/hb-ot-layout-private.h
+0
-2
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+0
-7
src/hb-ot-layout.h
src/hb-ot-layout.h
+0
-4
未找到文件。
src/hb-blob.h
浏览文件 @
0090dc0f
...
...
@@ -31,9 +31,6 @@
HB_BEGIN_DECLS
typedef
struct
_hb_blob_t
hb_blob_t
;
typedef
void
(
*
hb_destroy_func_t
)
(
void
*
user_data
);
typedef
enum
{
HB_MEMORY_MODE_DUPLICATE
,
HB_MEMORY_MODE_READONLY
,
...
...
src/hb-common.h
浏览文件 @
0090dc0f
...
...
@@ -50,4 +50,13 @@ typedef uint32_t hb_codepoint_t;
typedef
int32_t
hb_position_t
;
typedef
int32_t
hb_16dot16_t
;
typedef
struct
_hb_blob_t
hb_blob_t
;
typedef
void
(
*
hb_destroy_func_t
)
(
void
*
user_data
);
typedef
struct
_hb_font_callbacks_t
hb_font_callbacks_t
;
typedef
struct
_hb_unicode_callbacks_t
hb_unicode_callbacks_t
;
typedef
struct
_hb_face_t
hb_face_t
;
typedef
struct
_hb_font_t
hb_font_t
;
#endif
/* HB_COMMON_H */
src/hb-ot-layout-gpos-private.h
浏览文件 @
0090dc0f
...
...
@@ -109,19 +109,32 @@ struct ValueRecord {
if
(
format
&
yAdvance
)
glyph_pos
->
y_advance
+=
y_scale
*
*
(
SHORT
*
)
values
++
/
0x10000
;
if
(
HB_LIKELY
(
!
layout
->
gpos_info
.
dvi
))
{
x_ppem
=
layout
->
gpos_info
.
x_ppem
;
y_ppem
=
layout
->
gpos_info
.
y_ppem
;
/* pixel -> fractional pixel */
if
(
format
&
xPlaDevice
)
x_ppem
=
layout
->
gpos_info
.
x_ppem
;
y_ppem
=
layout
->
gpos_info
.
y_ppem
;
/* pixel -> fractional pixel */
if
(
format
&
xPlaDevice
)
{
if
(
x_ppem
)
glyph_pos
->
x_pos
+=
(
base
+*
(
OffsetTo
<
Device
>*
)
values
++
).
get_delta
(
x_ppem
)
<<
6
;
if
(
format
&
yPlaDevice
)
else
values
++
;
}
if
(
format
&
yPlaDevice
)
{
if
(
y_ppem
)
glyph_pos
->
y_pos
+=
(
base
+*
(
OffsetTo
<
Device
>*
)
values
++
).
get_delta
(
y_ppem
)
<<
6
;
if
(
format
&
xAdvDevice
)
else
values
++
;
}
if
(
format
&
xAdvDevice
)
{
if
(
x_ppem
)
glyph_pos
->
x_advance
+=
(
base
+*
(
OffsetTo
<
Device
>*
)
values
++
).
get_delta
(
x_ppem
)
<<
6
;
if
(
format
&
yAdvDevice
)
else
values
++
;
}
if
(
format
&
yAdvDevice
)
{
if
(
y_ppem
)
glyph_pos
->
y_advance
+=
(
base
+*
(
OffsetTo
<
Device
>*
)
values
++
).
get_delta
(
y_ppem
)
<<
6
;
else
values
++
;
}
}
};
...
...
@@ -179,11 +192,10 @@ struct AnchorFormat3
*
x
=
layout
->
gpos_info
.
x_scale
*
xCoordinate
/
0x10000
;
*
y
=
layout
->
gpos_info
.
y_scale
*
yCoordinate
/
0x10000
;
if
(
!
layout
->
gpos_info
.
dvi
)
{
if
(
layout
->
gpos_info
.
x_ppem
)
*
x
+=
(
this
+
xDeviceTable
).
get_delta
(
layout
->
gpos_info
.
x_ppem
)
<<
6
;
if
(
layout
->
gpos_info
.
y_ppem
)
*
y
+=
(
this
+
yDeviceTable
).
get_delta
(
layout
->
gpos_info
.
y_ppem
)
<<
6
;
}
}
private:
...
...
src/hb-ot-layout-private.h
浏览文件 @
0090dc0f
...
...
@@ -51,8 +51,6 @@ struct _hb_ot_layout_t
unsigned
int
x_ppem
,
y_ppem
;
hb_16dot16_t
x_scale
,
y_scale
;
hb_bool_t
dvi
;
unsigned
int
last
;
/* the last valid glyph--used with cursive positioning */
hb_position_t
anchor_x
;
/* the coordinates of the anchor point */
hb_position_t
anchor_y
;
/* of the last valid glyph */
...
...
src/hb-ot-layout.cc
浏览文件 @
0090dc0f
...
...
@@ -114,13 +114,6 @@ hb_ot_layout_destroy (hb_ot_layout_t *layout)
free
(
layout
);
}
void
hb_ot_layout_set_hinting
(
hb_ot_layout_t
*
layout
,
hb_bool_t
hinted
)
{
layout
->
gpos_info
.
dvi
=
!
hinted
;
}
void
hb_ot_layout_set_scale
(
hb_ot_layout_t
*
layout
,
hb_16dot16_t
x_scale
,
hb_16dot16_t
y_scale
)
...
...
src/hb-ot-layout.h
浏览文件 @
0090dc0f
...
...
@@ -53,10 +53,6 @@ hb_ot_layout_create_for_tables (const char *gdef_data,
void
hb_ot_layout_destroy
(
hb_ot_layout_t
*
layout
);
void
hb_ot_layout_set_hinting
(
hb_ot_layout_t
*
layout
,
hb_bool_t
hinted
);
void
hb_ot_layout_set_scale
(
hb_ot_layout_t
*
layout
,
hb_16dot16_t
x_scale
,
hb_16dot16_t
y_scale
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录