Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
2a99c28c
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2a99c28c
编写于
12月 16, 2013
作者:
P
prr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8027775: Enhance ICU code.
Reviewed-by: srl, bae, mschoene
上级
d4c4bd75
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
3 deletion
+13
-3
src/share/native/sun/font/layout/ContextualGlyphSubstProc2.cpp
...hare/native/sun/font/layout/ContextualGlyphSubstProc2.cpp
+1
-0
src/share/native/sun/font/layout/ContextualSubstSubtables.cpp
...share/native/sun/font/layout/ContextualSubstSubtables.cpp
+7
-2
src/share/native/sun/font/layout/LookupProcessor.cpp
src/share/native/sun/font/layout/LookupProcessor.cpp
+1
-0
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
+1
-0
src/share/native/sun/font/layout/OpenTypeUtilities.cpp
src/share/native/sun/font/layout/OpenTypeUtilities.cpp
+1
-1
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
+1
-0
src/share/native/sun/font/layout/StateTableProcessor.cpp
src/share/native/sun/font/layout/StateTableProcessor.cpp
+1
-0
未找到文件。
src/share/native/sun/font/layout/ContextualGlyphSubstProc2.cpp
浏览文件 @
2a99c28c
...
...
@@ -154,6 +154,7 @@ TTGlyphID ContextualGlyphSubstitutionProcessor2::lookup(le_uint32 offset, LEGlyp
TTGlyphID
glyphCode
=
(
TTGlyphID
)
LE_GET_GLYPH
(
gid
);
if
((
glyphCode
>=
firstGlyph
)
&&
(
glyphCode
<
lastGlyph
))
{
LEReferenceToArrayOf
<
LookupValue
>
valueArray
(
lookupTable8
,
success
,
&
lookupTable8
->
valueArray
[
0
],
glyphCount
);
if
(
LE_FAILURE
(
success
))
{
return
newGlyph
;
}
newGlyph
=
SWAPW
(
valueArray
(
glyphCode
-
firstGlyph
,
success
));
}
}
...
...
src/share/native/sun/font/layout/ContextualSubstSubtables.cpp
浏览文件 @
2a99c28c
...
...
@@ -110,6 +110,8 @@ le_bool ContextualSubstitutionBase::matchGlyphClasses(
LEErrorCode
&
success
,
le_bool
backtrack
)
{
if
(
LE_FAILURE
(
success
))
{
return
FALSE
;
}
le_int32
direction
=
1
;
le_int32
match
=
0
;
...
...
@@ -255,6 +257,7 @@ le_uint32 ContextualSubstitutionFormat1Subtable::process(const LETableReference
le_uint16
matchCount
=
SWAPW
(
subRuleTable
->
glyphCount
)
-
1
;
le_uint16
substCount
=
SWAPW
(
subRuleTable
->
substCount
);
LEReferenceToArrayOf
<
TTGlyphID
>
inputGlyphArray
(
base
,
success
,
subRuleTable
->
inputGlyphArray
,
matchCount
+
2
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
if
(
matchGlyphIDs
(
inputGlyphArray
,
matchCount
,
glyphIterator
))
{
LEReferenceToArrayOf
<
SubstitutionLookupRecord
>
substLookupRecordArray
(
base
,
success
,
(
const
SubstitutionLookupRecord
*
)
&
subRuleTable
->
inputGlyphArray
[
matchCount
],
substCount
);
...
...
@@ -315,6 +318,7 @@ le_uint32 ContextualSubstitutionFormat2Subtable::process(const LETableReference
LEReferenceToArrayOf
<
le_uint16
>
classArray
(
base
,
success
,
subClassRuleTable
->
classArray
,
matchCount
+
1
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
if
(
matchGlyphClasses
(
classArray
,
matchCount
,
glyphIterator
,
classDefinitionTable
,
success
))
{
LEReferenceToArrayOf
<
SubstitutionLookupRecord
>
substLookupRecordArray
(
base
,
success
,
(
const
SubstitutionLookupRecord
*
)
&
subClassRuleTable
->
classArray
[
matchCount
],
substCount
);
...
...
@@ -573,7 +577,7 @@ le_uint32 ChainingContextualSubstitutionFormat2Subtable::process(const LETableRe
if
(
matchGlyphClasses
(
inputClassArray
,
inputGlyphCount
,
glyphIterator
,
inputClassDefinitionTable
,
success
))
{
LEReferenceToArrayOf
<
SubstitutionLookupRecord
>
substLookupRecordArray
(
base
,
success
,
(
const
SubstitutionLookupRecord
*
)
lookaheadClassArray
.
getAlias
(
lookaheadGlyphCount
+
1
,
success
),
substCount
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
applySubstitutionLookups
(
lookupProcessor
,
substLookupRecordArray
,
substCount
,
glyphIterator
,
fontInstance
,
position
,
success
);
return
inputGlyphCount
+
1
;
...
...
@@ -601,9 +605,10 @@ le_uint32 ChainingContextualSubstitutionFormat3Subtable::process(const LETableRe
le_uint16
backtrkGlyphCount
=
SWAPW
(
backtrackGlyphCount
);
le_uint16
inputGlyphCount
=
(
le_uint16
)
SWAPW
(
backtrackCoverageTableOffsetArray
[
backtrkGlyphCount
]);
LEReferenceToArrayOf
<
Offset
>
inputCoverageTableOffsetArray
(
base
,
success
,
&
backtrackCoverageTableOffsetArray
[
backtrkGlyphCount
+
1
],
inputGlyphCount
+
2
);
// offset
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
const
le_uint16
lookaheadGlyphCount
=
(
le_uint16
)
SWAPW
(
inputCoverageTableOffsetArray
[
inputGlyphCount
]);
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEReferenceToArrayOf
<
Offset
>
lookaheadCoverageTableOffsetArray
(
base
,
success
,
inputCoverageTableOffsetArray
.
getAlias
(
inputGlyphCount
+
1
,
success
),
lookaheadGlyphCount
+
2
);
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
...
...
src/share/native/sun/font/layout/LookupProcessor.cpp
浏览文件 @
2a99c28c
...
...
@@ -282,6 +282,7 @@ LookupProcessor::LookupProcessor(const LETableReference &baseAddress,
for
(
le_uint16
feature
=
0
;
feature
<
featureCount
;
feature
+=
1
)
{
LEReferenceToArrayOf
<
le_uint16
>
featureIndexArray
(
langSysTable
,
success
,
langSysTable
->
featureIndexArray
,
featureCount
);
if
(
LE_FAILURE
(
success
))
{
continue
;
}
le_uint16
featureIndex
=
SWAPW
(
featureIndexArray
.
getObject
(
feature
,
success
));
// don't add the required feature to the list more than once...
...
...
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
浏览文件 @
2a99c28c
...
...
@@ -67,6 +67,7 @@ le_int32 MarkToBasePositioningSubtable::process(const LETableReference &base, Gl
LEPoint
markAnchor
;
LEReferenceTo
<
MarkArray
>
markArray
(
base
,
success
,
(
const
MarkArray
*
)
((
char
*
)
this
+
SWAPW
(
markArrayOffset
)));
if
(
LE_FAILURE
(
success
))
return
0
;
le_int32
markClass
=
markArray
->
getMarkClass
(
markArray
,
markGlyph
,
markCoverage
,
fontInstance
,
markAnchor
,
success
);
le_uint16
mcCount
=
SWAPW
(
classCount
);
...
...
src/share/native/sun/font/layout/OpenTypeUtilities.cpp
浏览文件 @
2a99c28c
...
...
@@ -79,8 +79,8 @@ le_int8 OpenTypeUtilities::highBit(le_int32 value)
Offset
OpenTypeUtilities
::
getTagOffset
(
LETag
tag
,
const
LEReferenceToArrayOf
<
TagAndOffsetRecord
>
&
records
,
LEErrorCode
&
success
)
{
const
TagAndOffsetRecord
*
r0
=
(
const
TagAndOffsetRecord
*
)
records
.
getAlias
();
if
(
LE_FAILURE
(
success
))
return
0
;
const
TagAndOffsetRecord
*
r0
=
(
const
TagAndOffsetRecord
*
)
records
.
getAlias
();
le_uint32
recordCount
=
records
.
getCount
();
le_uint8
bit
=
highBit
(
recordCount
);
...
...
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
浏览文件 @
2a99c28c
...
...
@@ -73,6 +73,7 @@ void SegmentArrayProcessor::process(LEGlyphStorage &glyphStorage, LEErrorCode &s
if
(
offset
!=
0
)
{
LEReferenceToArrayOf
<
TTGlyphID
>
glyphArray
(
subtableHeader
,
success
,
offset
,
LE_UNBOUNDED_ARRAY
);
if
(
LE_FAILURE
(
success
))
{
continue
;
}
TTGlyphID
newGlyph
=
SWAPW
(
glyphArray
(
LE_GET_GLYPH
(
thisGlyph
)
-
firstGlyph
,
success
));
glyphStorage
[
glyph
]
=
LE_SET_GLYPH
(
thisGlyph
,
newGlyph
);
}
...
...
src/share/native/sun/font/layout/StateTableProcessor.cpp
浏览文件 @
2a99c28c
...
...
@@ -97,6 +97,7 @@ void StateTableProcessor::process(LEGlyphStorage &glyphStorage, LEErrorCode &suc
LEReferenceToArrayOf
<
EntryTableIndex
>
stateArray
(
stHeader
,
success
,
currentState
,
LE_UNBOUNDED_ARRAY
);
EntryTableIndex
entryTableIndex
=
stateArray
.
getObject
((
le_uint8
)
classCode
,
success
);
if
(
LE_FAILURE
(
success
))
{
break
;
}
LE_STATE_PATIENCE_CURR
(
le_int32
,
currGlyph
);
currentState
=
processStateEntry
(
glyphStorage
,
currGlyph
,
entryTableIndex
);
LE_STATE_PATIENCE_INCR
(
currGlyph
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录