Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
9f377ed3
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看板
提交
9f377ed3
编写于
5月 13, 2012
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix more unused-var warnings
上级
d993e723
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
45 addition
and
23 deletion
+45
-23
src/hb-ot-shape-complex-arabic.cc
src/hb-ot-shape-complex-arabic.cc
+5
-2
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+18
-7
src/hb-ot-shape-complex-misc.cc
src/hb-ot-shape-complex-misc.cc
+15
-6
src/hb-ot-shape-normalize.cc
src/hb-ot-shape-normalize.cc
+6
-7
src/hb-set.cc
src/hb-set.cc
+1
-1
未找到文件。
src/hb-ot-shape-complex-arabic.cc
浏览文件 @
9f377ed3
...
...
@@ -165,7 +165,8 @@ static const struct arabic_state_table_entry {
void
_hb_ot_shape_complex_collect_features_arabic
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
_hb_ot_shape_complex_collect_features_arabic
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
{
/* For Language forms (in ArabicOT speak), we do the iso/fina/medi/init together,
* then rlig and calt each in their own stage. This makes IranNastaliq's ALLAH
...
...
@@ -240,7 +241,9 @@ arabic_fallback_shape (hb_font_t *font, hb_buffer_t *buffer)
}
void
_hb_ot_shape_complex_setup_masks_arabic
(
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
_hb_ot_shape_complex_setup_masks_arabic
(
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
{
unsigned
int
count
=
buffer
->
len
;
unsigned
int
prev
=
0
,
state
=
0
;
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
9f377ed3
...
...
@@ -153,7 +153,8 @@ final_reordering (const hb_ot_map_t *map,
void
*
user_data
HB_UNUSED
);
void
_hb_ot_shape_complex_collect_features_indic
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
_hb_ot_shape_complex_collect_features_indic
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
map
->
add_bool_feature
(
HB_TAG
(
'l'
,
'o'
,
'c'
,
'l'
));
/* The Indic specs do not require ccmp, but we apply it here since if
...
...
@@ -185,7 +186,9 @@ _hb_ot_shape_complex_normalization_preference_indic (void)
void
_hb_ot_shape_complex_setup_masks_indic
(
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
_hb_ot_shape_complex_setup_masks_indic
(
hb_ot_map_t
*
map
HB_UNUSED
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
{
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
indic_category
);
HB_BUFFER_ALLOCATE_VAR
(
buffer
,
indic_position
);
...
...
@@ -322,7 +325,9 @@ initial_reordering_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buff
}
static
void
initial_reordering_syllable
(
const
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_mask_t
*
mask_array
,
initial_reordering_syllable
(
const
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_mask_t
*
mask_array
,
unsigned
int
start
,
unsigned
int
end
,
unsigned
int
base
)
{
hb_glyph_info_t
*
info
=
buffer
->
info
;
...
...
@@ -474,7 +479,9 @@ initial_reordering_syllable (const hb_ot_map_t *map, hb_buffer_t *buffer, hb_mas
static
void
initial_reordering_vowel_syllable
(
const
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_mask_t
*
mask_array
,
initial_reordering_vowel_syllable
(
const
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_mask_t
*
mask_array
,
unsigned
int
start
,
unsigned
int
end
)
{
/* We made the vowels look like consonants. So let's call the consonant logic! */
...
...
@@ -482,7 +489,9 @@ initial_reordering_vowel_syllable (const hb_ot_map_t *map, hb_buffer_t *buffer,
}
static
void
initial_reordering_standalone_cluster
(
const
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_mask_t
*
mask_array
,
initial_reordering_standalone_cluster
(
const
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_mask_t
*
mask_array
,
unsigned
int
start
,
unsigned
int
end
)
{
/* We treat NBSP/dotted-circle as if they are consonants, so we should just chain.
...
...
@@ -501,8 +510,10 @@ initial_reordering_standalone_cluster (const hb_ot_map_t *map, hb_buffer_t *buff
}
static
void
initial_reordering_non_indic
(
const
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_mask_t
*
mask_array
,
unsigned
int
start
,
unsigned
int
end
)
initial_reordering_non_indic
(
const
hb_ot_map_t
*
map
HB_UNUSED
,
hb_buffer_t
*
buffer
HB_UNUSED
,
hb_mask_t
*
mask_array
HB_UNUSED
,
unsigned
int
start
,
unsigned
int
end
)
{
/* Nothing to do right now. If we ever switch to using the output
* buffer in the reordering process, we'd need to next_glyph() here. */
...
...
src/hb-ot-shape-complex-misc.cc
浏览文件 @
9f377ed3
...
...
@@ -37,7 +37,8 @@
*/
void
_hb_ot_shape_complex_collect_features_default
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
_hb_ot_shape_complex_collect_features_default
(
hb_ot_map_builder_t
*
map
HB_UNUSED
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
}
...
...
@@ -48,7 +49,9 @@ _hb_ot_shape_complex_normalization_preference_default (void)
}
void
_hb_ot_shape_complex_setup_masks_default
(
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
_hb_ot_shape_complex_setup_masks_default
(
hb_ot_map_t
*
map
HB_UNUSED
,
hb_buffer_t
*
buffer
HB_UNUSED
,
hb_font_t
*
font
HB_UNUSED
)
{
}
...
...
@@ -64,7 +67,8 @@ static const hb_tag_t hangul_features[] =
};
void
_hb_ot_shape_complex_collect_features_hangul
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
_hb_ot_shape_complex_collect_features_hangul
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
for
(
unsigned
int
i
=
0
;
i
<
ARRAY_LENGTH
(
hangul_features
);
i
++
)
map
->
add_bool_feature
(
hangul_features
[
i
]);
...
...
@@ -77,7 +81,9 @@ _hb_ot_shape_complex_normalization_preference_hangul (void)
}
void
_hb_ot_shape_complex_setup_masks_hangul
(
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
_hb_ot_shape_complex_setup_masks_hangul
(
hb_ot_map_t
*
map
HB_UNUSED
,
hb_buffer_t
*
buffer
HB_UNUSED
,
hb_font_t
*
font
HB_UNUSED
)
{
}
...
...
@@ -86,7 +92,8 @@ _hb_ot_shape_complex_setup_masks_hangul (hb_ot_map_t *map, hb_buffer_t *buffer,
/* Thai / Lao shaper */
void
_hb_ot_shape_complex_collect_features_thai
(
hb_ot_map_builder_t
*
map
,
const
hb_segment_properties_t
*
props
)
_hb_ot_shape_complex_collect_features_thai
(
hb_ot_map_builder_t
*
map
HB_UNUSED
,
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
}
...
...
@@ -97,7 +104,9 @@ _hb_ot_shape_complex_normalization_preference_thai (void)
}
void
_hb_ot_shape_complex_setup_masks_thai
(
hb_ot_map_t
*
map
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
_hb_ot_shape_complex_setup_masks_thai
(
hb_ot_map_t
*
map
HB_UNUSED
,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
HB_UNUSED
)
{
/* The following is NOT specified in the MS OT Thai spec, however, it seems
* to be what Uniscribe and other engines implement. According to Eric Muller:
...
...
src/hb-ot-shape-normalize.cc
浏览文件 @
9f377ed3
...
...
@@ -69,8 +69,7 @@
*/
static
void
output_glyph
(
hb_font_t
*
font
,
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph
)
output_glyph
(
hb_buffer_t
*
buffer
,
hb_codepoint_t
glyph
)
{
buffer
->
output_glyph
(
glyph
);
_hb_glyph_info_set_unicode_props
(
&
buffer
->
prev
(),
buffer
->
unicode
);
...
...
@@ -90,22 +89,22 @@ decompose (hb_font_t *font, hb_buffer_t *buffer,
bool
has_a
=
hb_font_get_glyph
(
font
,
a
,
0
,
&
glyph
);
if
(
shortest
&&
has_a
)
{
/* Output a and b */
output_glyph
(
font
,
buffer
,
a
);
output_glyph
(
buffer
,
a
);
if
(
b
)
output_glyph
(
font
,
buffer
,
b
);
output_glyph
(
buffer
,
b
);
return
TRUE
;
}
if
(
decompose
(
font
,
buffer
,
shortest
,
a
))
{
if
(
b
)
output_glyph
(
font
,
buffer
,
b
);
output_glyph
(
buffer
,
b
);
return
TRUE
;
}
if
(
has_a
)
{
output_glyph
(
font
,
buffer
,
a
);
output_glyph
(
buffer
,
a
);
if
(
b
)
output_glyph
(
font
,
buffer
,
b
);
output_glyph
(
buffer
,
b
);
return
TRUE
;
}
...
...
src/hb-set.cc
浏览文件 @
9f377ed3
...
...
@@ -91,7 +91,7 @@ hb_set_get_user_data (hb_set_t *set,
hb_bool_t
hb_set_allocation_successful
(
hb_set_t
*
set
)
hb_set_allocation_successful
(
hb_set_t
*
set
HB_UNUSED
)
{
return
TRUE
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录