Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
468769b8
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,发现更多精彩内容 >>
提交
468769b8
编写于
8月 08, 2009
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[HB] Rename hb_ot_layout_feature_mask_t to hb_mask_t
上级
7f96b39a
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
42 addition
and
58 deletion
+42
-58
src/TODO
src/TODO
+0
-1
src/hb-buffer-private.h
src/hb-buffer-private.h
+2
-2
src/hb-buffer.c
src/hb-buffer.c
+6
-6
src/hb-buffer.h
src/hb-buffer.h
+2
-2
src/hb-common.h
src/hb-common.h
+1
-0
src/hb-ot-layout-gpos-private.hh
src/hb-ot-layout-gpos-private.hh
+6
-6
src/hb-ot-layout-gsub-private.hh
src/hb-ot-layout-gsub-private.hh
+7
-7
src/hb-ot-layout.cc
src/hb-ot-layout.cc
+9
-9
src/hb-ot-layout.h
src/hb-ot-layout.h
+9
-25
未找到文件。
src/TODO
浏览文件 @
468769b8
- Test OpenType 1.6 mark filtering sets
- HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH vs LookupType::... mess
- remove hb_ot_layout_feature_mask_t in favore of hb_mask_t or something
- Rename LookupFlag::MarkAttachmentType to LookupFlag:IgnoreSpecialMarks
- cmap14 support in get_glyph callback
- size_t?
...
...
src/hb-buffer-private.h
浏览文件 @
468769b8
...
...
@@ -38,7 +38,7 @@ HB_BEGIN_DECLS
typedef
struct
_hb_internal_glyph_info_t
{
hb_codepoint_t
codepoint
;
uint32_t
properties
;
hb_mask_t
mask
;
uint32_t
cluster
;
uint16_t
component
;
uint16_t
lig_id
;
...
...
@@ -122,7 +122,7 @@ _hb_buffer_allocate_lig_id (hb_buffer_t *buffer);
#define IN_INFO(pos) (&buffer->in_string[(pos)])
#define IN_CURGLYPH() (buffer->in_string[buffer->in_pos].codepoint)
#define IN_CURINFO() (&buffer->in_string[buffer->in_pos])
#define IN_
PROPERTIES(pos) (buffer->in_string[(pos)].properties
)
#define IN_
MASK(pos) (buffer->in_string[(pos)].mask
)
#define IN_LIGID(pos) (buffer->in_string[(pos)].lig_id)
#define IN_COMPONENT(pos) (buffer->in_string[(pos)].component)
#define POSITION(pos) (&buffer->positions[(pos)])
...
...
src/hb-buffer.c
浏览文件 @
468769b8
...
...
@@ -160,7 +160,7 @@ hb_buffer_ensure (hb_buffer_t *buffer, unsigned int size)
void
hb_buffer_add_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
codepoint
,
unsigned
int
properties
,
hb_mask_t
mask
,
unsigned
int
cluster
)
{
hb_internal_glyph_info_t
*
glyph
;
...
...
@@ -169,7 +169,7 @@ hb_buffer_add_glyph (hb_buffer_t *buffer,
glyph
=
&
buffer
->
in_string
[
buffer
->
in_length
];
glyph
->
codepoint
=
codepoint
;
glyph
->
properties
=
properties
;
glyph
->
mask
=
mask
;
glyph
->
cluster
=
cluster
;
glyph
->
component
=
0
;
glyph
->
lig_id
=
0
;
...
...
@@ -248,7 +248,7 @@ _hb_buffer_swap (hb_buffer_t *buffer)
will copied `num_out' times, otherwise `lig_id' itself will
be used to fill the `lig_id' fields.
The
properties
for all replacement glyphs are taken
The
mask
for all replacement glyphs are taken
from the glyph at position `buffer->in_pos'.
The cluster value for the glyph at position buffer->in_pos is used
...
...
@@ -262,7 +262,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
unsigned
short
lig_id
)
{
unsigned
int
i
;
unsigned
int
properties
;
unsigned
int
mask
;
unsigned
int
cluster
;
if
(
buffer
->
out_string
!=
buffer
->
in_string
||
...
...
@@ -271,7 +271,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
hb_buffer_ensure_separate
(
buffer
,
buffer
->
out_pos
+
num_out
);
}
properties
=
buffer
->
in_string
[
buffer
->
in_pos
].
properties
;
mask
=
buffer
->
in_string
[
buffer
->
in_pos
].
mask
;
cluster
=
buffer
->
in_string
[
buffer
->
in_pos
].
cluster
;
if
(
component
==
0xFFFF
)
component
=
buffer
->
in_string
[
buffer
->
in_pos
].
component
;
...
...
@@ -282,7 +282,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
{
hb_internal_glyph_info_t
*
info
=
&
buffer
->
out_string
[
buffer
->
out_pos
+
i
];
info
->
codepoint
=
hb_be_uint16
(
glyph_data_be
[
i
]);
info
->
properties
=
properties
;
info
->
mask
=
mask
;
info
->
cluster
=
cluster
;
info
->
component
=
component
;
info
->
lig_id
=
lig_id
;
...
...
src/hb-buffer.h
浏览文件 @
468769b8
...
...
@@ -43,7 +43,7 @@ typedef enum _hb_direction_t {
typedef
struct
_hb_glyph_info_t
{
hb_codepoint_t
codepoint
;
uint32_t
properties
;
hb_mask_t
mask
;
uint32_t
cluster
;
uint16_t
component
;
uint16_t
lig_id
;
...
...
@@ -103,7 +103,7 @@ hb_buffer_ensure (hb_buffer_t *buffer,
void
hb_buffer_add_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
codepoint
,
unsigned
int
properties
,
hb_mask_t
mask
,
unsigned
int
cluster
);
...
...
src/hb-common.h
浏览文件 @
468769b8
...
...
@@ -50,6 +50,7 @@ typedef uint32_t hb_tag_t;
typedef
uint32_t
hb_codepoint_t
;
typedef
int32_t
hb_position_t
;
typedef
int32_t
hb_16dot16_t
;
typedef
uint32_t
hb_mask_t
;
typedef
void
(
*
hb_destroy_func_t
)
(
void
*
user_data
);
...
...
src/hb-ot-layout-gpos-private.hh
浏览文件 @
468769b8
...
...
@@ -1462,7 +1462,7 @@ struct PosLookup : Lookup
bool
apply_string
(
hb_ot_layout_context_t
*
context
,
hb_buffer_t
*
buffer
,
hb_
ot_layout_feature_mask_t
mask
)
const
hb_
mask_t
mask
)
const
{
bool
ret
=
false
;
...
...
@@ -1475,7 +1475,7 @@ struct PosLookup : Lookup
while
(
buffer
->
in_pos
<
buffer
->
in_length
)
{
bool
done
;
if
(
~
IN_
PROPERTIES
(
buffer
->
in_pos
)
&
mask
)
if
(
~
IN_
MASK
(
buffer
->
in_pos
)
&
mask
)
{
done
=
apply_once
(
context
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
);
ret
|=
done
;
...
...
@@ -1524,7 +1524,7 @@ struct GPOS : GSUBGPOS
inline
bool
position_lookup
(
hb_ot_layout_context_t
*
context
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_
ot_layout_feature_mask_t
mask
)
const
hb_
mask_t
mask
)
const
{
return
get_lookup
(
lookup_index
).
apply_string
(
context
,
buffer
,
mask
);
}
bool
sanitize
(
SANITIZE_ARG_DEF
)
{
...
...
src/hb-ot-layout-gsub-private.hh
浏览文件 @
468769b8
...
...
@@ -775,7 +775,7 @@ struct SubstLookup : Lookup
bool
apply_string
(
hb_ot_layout_context_t
*
context
,
hb_buffer_t
*
buffer
,
hb_
ot_layout_feature_mask_t
mask
)
const
hb_
mask_t
mask
)
const
{
bool
ret
=
false
;
...
...
@@ -789,7 +789,7 @@ struct SubstLookup : Lookup
buffer
->
in_pos
=
0
;
while
(
buffer
->
in_pos
<
buffer
->
in_length
)
{
if
((
~
IN_
PROPERTIES
(
buffer
->
in_pos
)
&
mask
)
&&
if
((
~
IN_
MASK
(
buffer
->
in_pos
)
&
mask
)
&&
apply_once
(
context
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
))
ret
=
true
;
else
...
...
@@ -807,7 +807,7 @@ struct SubstLookup : Lookup
buffer
->
in_pos
=
buffer
->
in_length
-
1
;
do
{
if
((
~
IN_
PROPERTIES
(
buffer
->
in_pos
)
&
mask
)
&&
if
((
~
IN_
MASK
(
buffer
->
in_pos
)
&
mask
)
&&
apply_once
(
context
,
buffer
,
NO_CONTEXT
,
MAX_NESTING_LEVEL
))
ret
=
true
;
else
...
...
@@ -849,7 +849,7 @@ struct GSUB : GSUBGPOS
inline
bool
substitute_lookup
(
hb_ot_layout_context_t
*
context
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_
ot_layout_feature_mask_t
mask
)
const
hb_
mask_t
mask
)
const
{
return
get_lookup
(
lookup_index
).
apply_string
(
context
,
buffer
,
mask
);
}
...
...
src/hb-ot-layout.cc
浏览文件 @
468769b8
...
...
@@ -537,7 +537,7 @@ hb_bool_t
hb_ot_layout_substitute_lookup
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_
ot_layout_feature_mask_t
mask
)
hb_
mask_t
mask
)
{
hb_ot_layout_context_t
context
;
context
.
font
=
NULL
;
...
...
@@ -561,7 +561,7 @@ hb_ot_layout_position_lookup (hb_face_t *face,
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_
ot_layout_feature_mask_t
mask
)
hb_
mask_t
mask
)
{
hb_ot_layout_context_t
context
;
context
.
font
=
font
;
...
...
src/hb-ot-layout.h
浏览文件 @
468769b8
...
...
@@ -92,8 +92,6 @@ hb_ot_layout_get_lig_carets (hb_face_t *face,
* GSUB/GPOS feature query and enumeration interface
*/
typedef
uint32_t
hb_ot_layout_feature_mask_t
;
#define HB_OT_LAYOUT_NO_SCRIPT_INDEX ((unsigned int) 0xFFFF)
#define HB_OT_LAYOUT_NO_FEATURE_INDEX ((unsigned int) 0xFFFF)
#define HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX ((unsigned int) 0xFFFF)
...
...
@@ -184,12 +182,11 @@ hb_ot_layout_feature_get_lookup_indexes (hb_face_t *face,
hb_bool_t
hb_ot_layout_has_substitution
(
hb_face_t
*
face
);
/* XXX ?? GSUB is not font-size dependent, so we apply on face */
hb_bool_t
hb_ot_layout_substitute_lookup
(
hb_face_t
*
face
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_
ot_layout_feature_mask_t
mask
);
hb_
mask_t
mask
);
/*
* GPOS
...
...
@@ -203,21 +200,8 @@ hb_ot_layout_position_lookup (hb_face_t *face,
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
unsigned
int
lookup_index
,
hb_ot_layout_feature_mask_t
mask
);
/*
#define PANGO_OT_ALL_GLYPHS ((guint) 0xFFFF)
hb_mask_t
mask
);
*/
HB_END_DECLS
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录