Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
0cd2475e
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看板
提交
0cd2475e
编写于
10月 21, 2015
作者:
V
vadim
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8139012: Better font substitutions
Reviewed-by: prr, srl, mschoene
上级
355ffe4b
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
49 addition
and
41 deletion
+49
-41
src/share/native/sun/font/layout/ContextualSubstSubtables.cpp
...share/native/sun/font/layout/ContextualSubstSubtables.cpp
+41
-37
src/share/native/sun/font/layout/CursiveAttachmentSubtables.cpp
...are/native/sun/font/layout/CursiveAttachmentSubtables.cpp
+1
-1
src/share/native/sun/font/layout/Features.cpp
src/share/native/sun/font/layout/Features.cpp
+1
-1
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
+1
-1
src/share/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
...re/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
+5
-1
未找到文件。
src/share/native/sun/font/layout/ContextualSubstSubtables.cpp
浏览文件 @
0cd2475e
...
@@ -243,14 +243,14 @@ le_uint32 ContextualSubstitutionFormat1Subtable::process(const LETableReference
...
@@ -243,14 +243,14 @@ le_uint32 ContextualSubstitutionFormat1Subtable::process(const LETableReference
le_uint16
srSetCount
=
SWAPW
(
subRuleSetCount
);
le_uint16
srSetCount
=
SWAPW
(
subRuleSetCount
);
if
(
coverageIndex
<
srSetCount
)
{
if
(
coverageIndex
<
srSetCount
)
{
LEReferenceToArrayOf
<
Offset
>
subRuleSetTableOffsetArrayRef
(
base
,
success
,
LEReferenceToArrayOf
<
Offset
>
&
subRuleSetTableOffsetArray
[
coverageIndex
],
1
);
subRuleSetTableOffsetArrayRef
(
base
,
success
,
subRuleSetTableOffsetArray
,
srSetCount
);
if
(
LE_FAILURE
(
success
))
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
return
0
;
}
}
Offset
subRuleSetTableOffset
=
SWAPW
(
subRuleSetTableOffsetArray
[
coverageIndex
]);
Offset
subRuleSetTableOffset
=
SWAPW
(
subRuleSetTableOffsetArray
[
coverageIndex
]);
LEReferenceTo
<
SubRuleSetTable
>
LEReferenceTo
<
SubRuleSetTable
>
subRuleSetTable
(
base
,
success
,
subRuleSetTableOffset
);
subRuleSetTable
(
base
,
success
,
(
const
SubRuleSetTable
*
)
((
char
*
)
this
+
subRuleSetTableOffset
));
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
subRuleCount
=
SWAPW
(
subRuleSetTable
->
subRuleCount
);
le_uint16
subRuleCount
=
SWAPW
(
subRuleSetTable
->
subRuleCount
);
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
...
@@ -264,6 +264,7 @@ le_uint32 ContextualSubstitutionFormat1Subtable::process(const LETableReference
...
@@ -264,6 +264,7 @@ le_uint32 ContextualSubstitutionFormat1Subtable::process(const LETableReference
SWAPW
(
subRuleSetTable
->
subRuleTableOffsetArray
[
subRule
]);
SWAPW
(
subRuleSetTable
->
subRuleTableOffsetArray
[
subRule
]);
LEReferenceTo
<
SubRuleTable
>
LEReferenceTo
<
SubRuleTable
>
subRuleTable
(
subRuleSetTable
,
success
,
subRuleTableOffset
);
subRuleTable
(
subRuleSetTable
,
success
,
subRuleTableOffset
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
matchCount
=
SWAPW
(
subRuleTable
->
glyphCount
)
-
1
;
le_uint16
matchCount
=
SWAPW
(
subRuleTable
->
glyphCount
)
-
1
;
le_uint16
substCount
=
SWAPW
(
subRuleTable
->
substCount
);
le_uint16
substCount
=
SWAPW
(
subRuleTable
->
substCount
);
LEReferenceToArrayOf
<
TTGlyphID
>
inputGlyphArray
(
base
,
success
,
subRuleTable
->
inputGlyphArray
,
matchCount
+
2
);
LEReferenceToArrayOf
<
TTGlyphID
>
inputGlyphArray
(
base
,
success
,
subRuleTable
->
inputGlyphArray
,
matchCount
+
2
);
...
@@ -304,8 +305,8 @@ le_uint32 ContextualSubstitutionFormat2Subtable::process(const LETableReference
...
@@ -304,8 +305,8 @@ le_uint32 ContextualSubstitutionFormat2Subtable::process(const LETableReference
}
}
if
(
coverageIndex
>=
0
)
{
if
(
coverageIndex
>=
0
)
{
LEReferenceTo
<
ClassDefinitionTable
>
classDefinitionTable
(
base
,
success
,
LEReferenceTo
<
ClassDefinitionTable
>
classDefinitionTable
(
base
,
success
,
SWAPW
(
classDefTableOffset
));
(
const
ClassDefinitionTable
*
)
((
char
*
)
this
+
SWAPW
(
classDefTableOffset
)));
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
scSetCount
=
SWAPW
(
subClassSetCount
);
le_uint16
scSetCount
=
SWAPW
(
subClassSetCount
);
le_int32
setClass
=
classDefinitionTable
->
getGlyphClass
(
classDefinitionTable
,
le_int32
setClass
=
classDefinitionTable
->
getGlyphClass
(
classDefinitionTable
,
glyphIterator
->
getCurrGlyphID
(),
glyphIterator
->
getCurrGlyphID
(),
...
@@ -313,13 +314,13 @@ le_uint32 ContextualSubstitutionFormat2Subtable::process(const LETableReference
...
@@ -313,13 +314,13 @@ le_uint32 ContextualSubstitutionFormat2Subtable::process(const LETableReference
if
(
setClass
<
scSetCount
)
{
if
(
setClass
<
scSetCount
)
{
LEReferenceToArrayOf
<
Offset
>
LEReferenceToArrayOf
<
Offset
>
subClassSetTableOffsetArrayRef
(
base
,
success
,
subClassSetTableOffsetArray
,
setClass
);
subClassSetTableOffsetArrayRef
(
base
,
success
,
subClassSetTableOffsetArray
,
scSetCount
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
if
(
subClassSetTableOffsetArray
[
setClass
]
!=
0
)
{
if
(
subClassSetTableOffsetArray
[
setClass
]
!=
0
)
{
Offset
subClassSetTableOffset
=
SWAPW
(
subClassSetTableOffsetArray
[
setClass
]);
Offset
subClassSetTableOffset
=
SWAPW
(
subClassSetTableOffsetArray
[
setClass
]);
LEReferenceTo
<
SubClassSetTable
>
LEReferenceTo
<
SubClassSetTable
>
subClassSetTable
(
base
,
success
,
subClassSetTableOffset
);
subClassSetTable
(
base
,
success
,
(
const
SubClassSetTable
*
)
((
char
*
)
this
+
subClassSetTableOffset
));
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
subClassRuleCount
=
SWAPW
(
subClassSetTable
->
subClassRuleCount
);
le_uint16
subClassRuleCount
=
SWAPW
(
subClassSetTable
->
subClassRuleCount
);
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
LEReferenceToArrayOf
<
Offset
>
LEReferenceToArrayOf
<
Offset
>
...
@@ -332,6 +333,7 @@ le_uint32 ContextualSubstitutionFormat2Subtable::process(const LETableReference
...
@@ -332,6 +333,7 @@ le_uint32 ContextualSubstitutionFormat2Subtable::process(const LETableReference
SWAPW
(
subClassSetTable
->
subClassRuleTableOffsetArray
[
scRule
]);
SWAPW
(
subClassSetTable
->
subClassRuleTableOffsetArray
[
scRule
]);
LEReferenceTo
<
SubClassRuleTable
>
LEReferenceTo
<
SubClassRuleTable
>
subClassRuleTable
(
subClassSetTable
,
success
,
subClassRuleTableOffset
);
subClassRuleTable
(
subClassSetTable
,
success
,
subClassRuleTableOffset
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
matchCount
=
SWAPW
(
subClassRuleTable
->
glyphCount
)
-
1
;
le_uint16
matchCount
=
SWAPW
(
subClassRuleTable
->
glyphCount
)
-
1
;
le_uint16
substCount
=
SWAPW
(
subClassRuleTable
->
substCount
);
le_uint16
substCount
=
SWAPW
(
subClassRuleTable
->
substCount
);
...
@@ -463,13 +465,13 @@ le_uint32 ChainingContextualSubstitutionFormat1Subtable::process(const LETableRe
...
@@ -463,13 +465,13 @@ le_uint32 ChainingContextualSubstitutionFormat1Subtable::process(const LETableRe
if
(
coverageIndex
<
srSetCount
)
{
if
(
coverageIndex
<
srSetCount
)
{
LEReferenceToArrayOf
<
Offset
>
LEReferenceToArrayOf
<
Offset
>
chainSubRuleSetTableOffsetArrayRef
(
base
,
success
,
chainSubRuleSetTableOffsetArray
,
coverageIndex
);
chainSubRuleSetTableOffsetArrayRef
(
base
,
success
,
chainSubRuleSetTableOffsetArray
,
srSetCount
);
if
(
LE_FAILURE
(
success
))
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
return
0
;
}
}
Offset
chainSubRuleSetTableOffset
=
SWAPW
(
chainSubRuleSetTableOffsetArray
[
coverageIndex
]);
Offset
chainSubRuleSetTableOffset
=
SWAPW
(
chainSubRuleSetTableOffsetArray
[
coverageIndex
]);
LEReferenceTo
<
ChainSubRuleSetTable
>
LEReferenceTo
<
ChainSubRuleSetTable
>
chainSubRuleSetTable
(
base
,
success
,
chainSubRuleSetTableOffset
);
chainSubRuleSetTable
(
base
,
success
,
(
const
ChainSubRuleSetTable
*
)
((
char
*
)
this
+
chainSubRuleSetTableOffset
));
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
chainSubRuleCount
=
SWAPW
(
chainSubRuleSetTable
->
chainSubRuleCount
);
le_uint16
chainSubRuleCount
=
SWAPW
(
chainSubRuleSetTable
->
chainSubRuleCount
);
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
GlyphIterator
tempIterator
(
*
glyphIterator
,
emptyFeatureList
);
GlyphIterator
tempIterator
(
*
glyphIterator
,
emptyFeatureList
);
...
@@ -550,17 +552,17 @@ le_uint32 ChainingContextualSubstitutionFormat2Subtable::process(const LETableRe
...
@@ -550,17 +552,17 @@ le_uint32 ChainingContextualSubstitutionFormat2Subtable::process(const LETableRe
if
(
coverageIndex
>=
0
)
{
if
(
coverageIndex
>=
0
)
{
LEReferenceTo
<
ClassDefinitionTable
>
LEReferenceTo
<
ClassDefinitionTable
>
backtrackClassDefinitionTable
(
base
,
success
,
(
const
ClassDefinitionTable
*
)
((
char
*
)
this
+
SWAPW
(
backtrackClassDefTableOffset
)
));
backtrackClassDefinitionTable
(
base
,
success
,
SWAPW
(
backtrackClassDefTableOffset
));
LEReferenceTo
<
ClassDefinitionTable
>
LEReferenceTo
<
ClassDefinitionTable
>
inputClassDefinitionTable
(
base
,
success
,
(
const
ClassDefinitionTable
*
)
((
char
*
)
this
+
SWAPW
(
inputClassDefTableOffset
)
));
inputClassDefinitionTable
(
base
,
success
,
SWAPW
(
inputClassDefTableOffset
));
LEReferenceTo
<
ClassDefinitionTable
>
LEReferenceTo
<
ClassDefinitionTable
>
lookaheadClassDefinitionTable
(
base
,
success
,
(
const
ClassDefinitionTable
*
)
((
char
*
)
this
+
SWAPW
(
lookaheadClassDefTableOffset
)
));
lookaheadClassDefinitionTable
(
base
,
success
,
SWAPW
(
lookaheadClassDefTableOffset
));
le_uint16
scSetCount
=
SWAPW
(
chainSubClassSetCount
);
le_uint16
scSetCount
=
SWAPW
(
chainSubClassSetCount
);
le_int32
setClass
=
inputClassDefinitionTable
->
getGlyphClass
(
inputClassDefinitionTable
,
le_int32
setClass
=
inputClassDefinitionTable
->
getGlyphClass
(
inputClassDefinitionTable
,
glyphIterator
->
getCurrGlyphID
(),
glyphIterator
->
getCurrGlyphID
(),
success
);
success
);
LEReferenceToArrayOf
<
Offset
>
LEReferenceToArrayOf
<
Offset
>
chainSubClassSetTableOffsetArrayRef
(
base
,
success
,
chainSubClassSetTableOffsetArray
,
s
etClass
);
chainSubClassSetTableOffsetArrayRef
(
base
,
success
,
chainSubClassSetTableOffsetArray
,
s
cSetCount
);
if
(
LE_FAILURE
(
success
))
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
return
0
;
}
}
...
@@ -568,7 +570,8 @@ le_uint32 ChainingContextualSubstitutionFormat2Subtable::process(const LETableRe
...
@@ -568,7 +570,8 @@ le_uint32 ChainingContextualSubstitutionFormat2Subtable::process(const LETableRe
if
(
setClass
<
scSetCount
&&
chainSubClassSetTableOffsetArray
[
setClass
]
!=
0
)
{
if
(
setClass
<
scSetCount
&&
chainSubClassSetTableOffsetArray
[
setClass
]
!=
0
)
{
Offset
chainSubClassSetTableOffset
=
SWAPW
(
chainSubClassSetTableOffsetArray
[
setClass
]);
Offset
chainSubClassSetTableOffset
=
SWAPW
(
chainSubClassSetTableOffsetArray
[
setClass
]);
LEReferenceTo
<
ChainSubClassSetTable
>
LEReferenceTo
<
ChainSubClassSetTable
>
chainSubClassSetTable
(
base
,
success
,
(
const
ChainSubClassSetTable
*
)
((
char
*
)
this
+
chainSubClassSetTableOffset
));
chainSubClassSetTable
(
base
,
success
,
chainSubClassSetTableOffset
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
chainSubClassRuleCount
=
SWAPW
(
chainSubClassSetTable
->
chainSubClassRuleCount
);
le_uint16
chainSubClassRuleCount
=
SWAPW
(
chainSubClassSetTable
->
chainSubClassRuleCount
);
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
le_int32
position
=
glyphIterator
->
getCurrStreamPosition
();
GlyphIterator
tempIterator
(
*
glyphIterator
,
emptyFeatureList
);
GlyphIterator
tempIterator
(
*
glyphIterator
,
emptyFeatureList
);
...
@@ -582,6 +585,7 @@ le_uint32 ChainingContextualSubstitutionFormat2Subtable::process(const LETableRe
...
@@ -582,6 +585,7 @@ le_uint32 ChainingContextualSubstitutionFormat2Subtable::process(const LETableRe
SWAPW
(
chainSubClassSetTable
->
chainSubClassRuleTableOffsetArray
[
scRule
]);
SWAPW
(
chainSubClassSetTable
->
chainSubClassRuleTableOffsetArray
[
scRule
]);
LEReferenceTo
<
ChainSubClassRuleTable
>
LEReferenceTo
<
ChainSubClassRuleTable
>
chainSubClassRuleTable
(
chainSubClassSetTable
,
success
,
chainSubClassRuleTableOffset
);
chainSubClassRuleTable
(
chainSubClassSetTable
,
success
,
chainSubClassRuleTableOffset
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
backtrackGlyphCount
=
SWAPW
(
chainSubClassRuleTable
->
backtrackGlyphCount
);
le_uint16
backtrackGlyphCount
=
SWAPW
(
chainSubClassRuleTable
->
backtrackGlyphCount
);
LEReferenceToArrayOf
<
le_uint16
>
backtrackClassArray
(
base
,
success
,
chainSubClassRuleTable
->
backtrackClassArray
,
backtrackGlyphCount
);
LEReferenceToArrayOf
<
le_uint16
>
backtrackClassArray
(
base
,
success
,
chainSubClassRuleTable
->
backtrackClassArray
,
backtrackGlyphCount
);
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
...
...
src/share/native/sun/font/layout/CursiveAttachmentSubtables.cpp
浏览文件 @
0cd2475e
...
@@ -46,7 +46,7 @@ le_uint32 CursiveAttachmentSubtable::process(const LEReferenceTo<CursiveAttachme
...
@@ -46,7 +46,7 @@ le_uint32 CursiveAttachmentSubtable::process(const LEReferenceTo<CursiveAttachme
le_uint16
eeCount
=
SWAPW
(
entryExitCount
);
le_uint16
eeCount
=
SWAPW
(
entryExitCount
);
LEReferenceToArrayOf
<
EntryExitRecord
>
LEReferenceToArrayOf
<
EntryExitRecord
>
entryExitRecordsArrayRef
(
base
,
success
,
entryExitRecords
,
coverageIndex
);
entryExitRecordsArrayRef
(
base
,
success
,
entryExitRecords
,
eeCount
);
if
(
coverageIndex
<
0
||
coverageIndex
>=
eeCount
||
LE_FAILURE
(
success
))
{
if
(
coverageIndex
<
0
||
coverageIndex
>=
eeCount
||
LE_FAILURE
(
success
))
{
glyphIterator
->
setCursiveGlyph
();
glyphIterator
->
setCursiveGlyph
();
...
...
src/share/native/sun/font/layout/Features.cpp
浏览文件 @
0cd2475e
...
@@ -41,7 +41,7 @@ U_NAMESPACE_BEGIN
...
@@ -41,7 +41,7 @@ U_NAMESPACE_BEGIN
LEReferenceTo
<
FeatureTable
>
FeatureListTable
::
getFeatureTable
(
const
LETableReference
&
base
,
le_uint16
featureIndex
,
LETag
*
featureTag
,
LEErrorCode
&
success
)
const
LEReferenceTo
<
FeatureTable
>
FeatureListTable
::
getFeatureTable
(
const
LETableReference
&
base
,
le_uint16
featureIndex
,
LETag
*
featureTag
,
LEErrorCode
&
success
)
const
{
{
LEReferenceToArrayOf
<
FeatureRecord
>
LEReferenceToArrayOf
<
FeatureRecord
>
featureRecordArrayRef
(
base
,
success
,
featureRecordArray
,
featureIndex
+
1
);
featureRecordArrayRef
(
base
,
success
,
featureRecordArray
,
SWAPW
(
featureCount
)
);
if
(
featureIndex
>=
SWAPW
(
featureCount
)
||
LE_FAILURE
(
success
))
{
if
(
featureIndex
>=
SWAPW
(
featureCount
)
||
LE_FAILURE
(
success
))
{
return
LEReferenceTo
<
FeatureTable
>
();
return
LEReferenceTo
<
FeatureTable
>
();
...
...
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
浏览文件 @
0cd2475e
...
@@ -93,7 +93,7 @@ le_int32 MarkToBasePositioningSubtable::process(const LETableReference &base, Gl
...
@@ -93,7 +93,7 @@ le_int32 MarkToBasePositioningSubtable::process(const LETableReference &base, Gl
}
}
LEReferenceTo
<
BaseRecord
>
baseRecord
(
base
,
success
,
&
baseArray
->
baseRecordArray
[
baseCoverage
*
mcCount
]);
LEReferenceTo
<
BaseRecord
>
baseRecord
(
base
,
success
,
&
baseArray
->
baseRecordArray
[
baseCoverage
*
mcCount
]);
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
LEReferenceToArrayOf
<
Offset
>
baseAnchorTableOffsetArray
(
base
,
success
,
&
(
baseRecord
->
baseAnchorTableOffsetArray
[
0
]),
m
arkClass
+
1
);
LEReferenceToArrayOf
<
Offset
>
baseAnchorTableOffsetArray
(
base
,
success
,
&
(
baseRecord
->
baseAnchorTableOffsetArray
[
0
]),
m
cCount
);
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
Offset
anchorTableOffset
=
SWAPW
(
baseRecord
->
baseAnchorTableOffsetArray
[
markClass
]);
Offset
anchorTableOffset
=
SWAPW
(
baseRecord
->
baseAnchorTableOffsetArray
[
markClass
]);
...
...
src/share/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
浏览文件 @
0cd2475e
...
@@ -83,6 +83,7 @@ le_int32 MarkToLigaturePositioningSubtable::process(const LETableReference &base
...
@@ -83,6 +83,7 @@ le_int32 MarkToLigaturePositioningSubtable::process(const LETableReference &base
LEGlyphID
ligatureGlyph
=
findLigatureGlyph
(
&
ligatureIterator
);
LEGlyphID
ligatureGlyph
=
findLigatureGlyph
(
&
ligatureIterator
);
le_int32
ligatureCoverage
=
getBaseCoverage
(
base
,
(
LEGlyphID
)
ligatureGlyph
,
success
);
le_int32
ligatureCoverage
=
getBaseCoverage
(
base
,
(
LEGlyphID
)
ligatureGlyph
,
success
);
LEReferenceTo
<
LigatureArray
>
ligatureArray
(
base
,
success
,
SWAPW
(
baseArrayOffset
));
LEReferenceTo
<
LigatureArray
>
ligatureArray
(
base
,
success
,
SWAPW
(
baseArrayOffset
));
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_uint16
ligatureCount
=
SWAPW
(
ligatureArray
->
ligatureCount
);
le_uint16
ligatureCount
=
SWAPW
(
ligatureArray
->
ligatureCount
);
if
(
ligatureCoverage
<
0
||
ligatureCoverage
>=
ligatureCount
)
{
if
(
ligatureCoverage
<
0
||
ligatureCoverage
>=
ligatureCount
)
{
...
@@ -95,6 +96,7 @@ le_int32 MarkToLigaturePositioningSubtable::process(const LETableReference &base
...
@@ -95,6 +96,7 @@ le_int32 MarkToLigaturePositioningSubtable::process(const LETableReference &base
le_int32
markPosition
=
glyphIterator
->
getCurrStreamPosition
();
le_int32
markPosition
=
glyphIterator
->
getCurrStreamPosition
();
Offset
ligatureAttachOffset
=
SWAPW
(
ligatureArray
->
ligatureAttachTableOffsetArray
[
ligatureCoverage
]);
Offset
ligatureAttachOffset
=
SWAPW
(
ligatureArray
->
ligatureAttachTableOffsetArray
[
ligatureCoverage
]);
LEReferenceTo
<
LigatureAttachTable
>
ligatureAttachTable
(
ligatureArray
,
success
,
ligatureAttachOffset
);
LEReferenceTo
<
LigatureAttachTable
>
ligatureAttachTable
(
ligatureArray
,
success
,
ligatureAttachOffset
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
le_int32
componentCount
=
SWAPW
(
ligatureAttachTable
->
componentCount
);
le_int32
componentCount
=
SWAPW
(
ligatureAttachTable
->
componentCount
);
le_int32
component
=
ligatureIterator
.
getMarkComponent
(
markPosition
);
le_int32
component
=
ligatureIterator
.
getMarkComponent
(
markPosition
);
...
@@ -104,10 +106,12 @@ le_int32 MarkToLigaturePositioningSubtable::process(const LETableReference &base
...
@@ -104,10 +106,12 @@ le_int32 MarkToLigaturePositioningSubtable::process(const LETableReference &base
}
}
LEReferenceTo
<
ComponentRecord
>
componentRecord
(
base
,
success
,
&
ligatureAttachTable
->
componentRecordArray
[
component
*
mcCount
]);
LEReferenceTo
<
ComponentRecord
>
componentRecord
(
base
,
success
,
&
ligatureAttachTable
->
componentRecordArray
[
component
*
mcCount
]);
LEReferenceToArrayOf
<
Offset
>
ligatureAnchorTableOffsetArray
(
base
,
success
,
&
(
componentRecord
->
ligatureAnchorTableOffsetArray
[
0
]),
markClass
+
1
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEReferenceToArrayOf
<
Offset
>
ligatureAnchorTableOffsetArray
(
base
,
success
,
&
(
componentRecord
->
ligatureAnchorTableOffsetArray
[
0
]),
mcCount
);
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
if
(
LE_FAILURE
(
success
)
)
{
return
0
;
}
Offset
anchorTableOffset
=
SWAPW
(
componentRecord
->
ligatureAnchorTableOffsetArray
[
markClass
]);
Offset
anchorTableOffset
=
SWAPW
(
componentRecord
->
ligatureAnchorTableOffsetArray
[
markClass
]);
LEReferenceTo
<
AnchorTable
>
anchorTable
(
ligatureAttachTable
,
success
,
anchorTableOffset
);
LEReferenceTo
<
AnchorTable
>
anchorTable
(
ligatureAttachTable
,
success
,
anchorTableOffset
);
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEPoint
ligatureAnchor
,
markAdvance
,
pixels
;
LEPoint
ligatureAnchor
,
markAdvance
,
pixels
;
anchorTable
->
getAnchor
(
anchorTable
,
ligatureGlyph
,
fontInstance
,
ligatureAnchor
,
success
);
anchorTable
->
getAnchor
(
anchorTable
,
ligatureGlyph
,
fontInstance
,
ligatureAnchor
,
success
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录