Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
3d6ca0d3
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看板
提交
3d6ca0d3
编写于
12月 31, 2013
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ot] Simplify normalization_preference again
No shaper has more than one behavior re this, so no need for a callback.
上级
c98b7183
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
9 addition
and
42 deletion
+9
-42
src/hb-ot-shape-complex-arabic.cc
src/hb-ot-shape-complex-arabic.cc
+1
-1
src/hb-ot-shape-complex-default.cc
src/hb-ot-shape-complex-default.cc
+1
-7
src/hb-ot-shape-complex-hangul.cc
src/hb-ot-shape-complex-hangul.cc
+1
-1
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-indic.cc
+1
-7
src/hb-ot-shape-complex-myanmar.cc
src/hb-ot-shape-complex-myanmar.cc
+1
-8
src/hb-ot-shape-complex-private.hh
src/hb-ot-shape-complex-private.hh
+1
-6
src/hb-ot-shape-complex-sea.cc
src/hb-ot-shape-complex-sea.cc
+1
-8
src/hb-ot-shape-complex-thai.cc
src/hb-ot-shape-complex-thai.cc
+1
-1
src/hb-ot-shape-normalize.cc
src/hb-ot-shape-normalize.cc
+1
-3
未找到文件。
src/hb-ot-shape-complex-arabic.cc
浏览文件 @
3d6ca0d3
...
...
@@ -366,7 +366,7 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_arabic =
data_create_arabic
,
data_destroy_arabic
,
NULL
,
/* preprocess_text_arabic */
NULL
,
/* normalization_preference */
HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT
,
NULL
,
/* decompose */
NULL
,
/* compose */
setup_masks_arabic
,
...
...
src/hb-ot-shape-complex-default.cc
浏览文件 @
3d6ca0d3
...
...
@@ -58,12 +58,6 @@ collect_features_default (hb_ot_shape_planner_t *plan)
plan
->
map
.
add_global_bool_feature
(
*
script_features
);
}
static
hb_ot_shape_normalization_mode_t
normalization_preference_default
(
const
hb_segment_properties_t
*
props
)
{
return
HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS
;
}
static
bool
compose_default
(
const
hb_ot_shape_normalize_context_t
*
c
,
hb_codepoint_t
a
,
...
...
@@ -198,7 +192,7 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_default =
NULL
,
/* data_create */
NULL
,
/* data_destroy */
NULL
,
/* preprocess_text */
normalization_preference_default
,
HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT
,
NULL
,
/* decompose */
compose_default
,
NULL
,
/* setup_masks */
...
...
src/hb-ot-shape-complex-hangul.cc
浏览文件 @
3d6ca0d3
...
...
@@ -223,7 +223,7 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_hangul =
NULL
,
/* data_create */
NULL
,
/* data_destroy */
preprocess_text_hangul
,
NULL
,
/* normalization_preference */
HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT
,
NULL
,
/* decompose */
NULL
,
/* compose */
NULL
,
/* setup_masks */
...
...
src/hb-ot-shape-complex-indic.cc
浏览文件 @
3d6ca0d3
...
...
@@ -1690,12 +1690,6 @@ clear_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
}
static
hb_ot_shape_normalization_mode_t
normalization_preference_indic
(
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
return
HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT
;
}
static
bool
decompose_indic
(
const
hb_ot_shape_normalize_context_t
*
c
,
hb_codepoint_t
ab
,
...
...
@@ -1806,7 +1800,7 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_indic =
data_create_indic
,
data_destroy_indic
,
NULL
,
/* preprocess_text */
normalization_preference_indic
,
HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT
,
decompose_indic
,
compose_indic
,
setup_masks_indic
,
...
...
src/hb-ot-shape-complex-myanmar.cc
浏览文件 @
3d6ca0d3
...
...
@@ -541,13 +541,6 @@ final_reordering (const hb_ot_shape_plan_t *plan,
}
static
hb_ot_shape_normalization_mode_t
normalization_preference_myanmar
(
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
return
HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT
;
}
const
hb_ot_complex_shaper_t
_hb_ot_complex_shaper_myanmar
=
{
"myanmar"
,
...
...
@@ -556,7 +549,7 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_myanmar =
NULL
,
/* data_create */
NULL
,
/* data_destroy */
NULL
,
/* preprocess_text */
normalization_preference_myanmar
,
HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT
,
NULL
,
/* decompose */
NULL
,
/* compose */
setup_masks_myanmar
,
...
...
src/hb-ot-shape-complex-private.hh
浏览文件 @
3d6ca0d3
...
...
@@ -106,12 +106,7 @@ struct hb_ot_complex_shaper_t
hb_font_t
*
font
);
/* normalization_preference()
* Called during shape().
* May be NULL.
*/
hb_ot_shape_normalization_mode_t
(
*
normalization_preference
)
(
const
hb_segment_properties_t
*
props
);
hb_ot_shape_normalization_mode_t
normalization_preference
;
/* decompose()
* Called during shape()'s normalization.
...
...
src/hb-ot-shape-complex-sea.cc
浏览文件 @
3d6ca0d3
...
...
@@ -360,13 +360,6 @@ final_reordering (const hb_ot_shape_plan_t *plan,
}
static
hb_ot_shape_normalization_mode_t
normalization_preference_sea
(
const
hb_segment_properties_t
*
props
HB_UNUSED
)
{
return
HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT
;
}
const
hb_ot_complex_shaper_t
_hb_ot_complex_shaper_sea
=
{
"sea"
,
...
...
@@ -375,7 +368,7 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_sea =
NULL
,
/* data_create */
NULL
,
/* data_destroy */
NULL
,
/* preprocess_text */
normalization_preference_sea
,
HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT
,
NULL
,
/* decompose */
NULL
,
/* compose */
setup_masks_sea
,
...
...
src/hb-ot-shape-complex-thai.cc
浏览文件 @
3d6ca0d3
...
...
@@ -369,7 +369,7 @@ const hb_ot_complex_shaper_t _hb_ot_complex_shaper_thai =
NULL
,
/* data_create */
NULL
,
/* data_destroy */
preprocess_text_thai
,
NULL
,
/* normalization_preference */
HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT
,
NULL
,
/* decompose */
NULL
,
/* compose */
NULL
,
/* setup_masks */
...
...
src/hb-ot-shape-normalize.cc
浏览文件 @
3d6ca0d3
...
...
@@ -289,9 +289,7 @@ _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan,
hb_buffer_t
*
buffer
,
hb_font_t
*
font
)
{
hb_ot_shape_normalization_mode_t
mode
=
plan
->
shaper
->
normalization_preference
?
plan
->
shaper
->
normalization_preference
(
&
buffer
->
props
)
:
HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT
;
hb_ot_shape_normalization_mode_t
mode
=
plan
->
shaper
->
normalization_preference
;
const
hb_ot_shape_normalize_context_t
c
=
{
plan
,
buffer
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录