Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
158e093a
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看板
提交
158e093a
编写于
9月 24, 2019
作者:
M
mbalao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8227129: Better ligature for subtables
Reviewed-by: bae
上级
d26d5d1a
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
76 addition
and
2 deletion
+76
-2
src/share/native/sun/font/layout/AlternateSubstSubtables.cpp
src/share/native/sun/font/layout/AlternateSubstSubtables.cpp
+4
-0
src/share/native/sun/font/layout/CursiveAttachmentSubtables.cpp
...are/native/sun/font/layout/CursiveAttachmentSubtables.cpp
+4
-0
src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
...re/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MarkToMarkPosnSubtables.cpp
src/share/native/sun/font/layout/MarkToMarkPosnSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MorphTables.cpp
src/share/native/sun/font/layout/MorphTables.cpp
+4
-2
src/share/native/sun/font/layout/PairPositioningSubtables.cpp
...share/native/sun/font/layout/PairPositioningSubtables.cpp
+12
-0
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
+2
-0
src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp
src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp
+2
-0
src/share/native/sun/font/layout/SegmentSingleProcessor.cpp
src/share/native/sun/font/layout/SegmentSingleProcessor.cpp
+2
-0
src/share/native/sun/font/layout/SegmentSingleProcessor2.cpp
src/share/native/sun/font/layout/SegmentSingleProcessor2.cpp
+2
-0
src/share/native/sun/font/layout/SimpleArrayProcessor.cpp
src/share/native/sun/font/layout/SimpleArrayProcessor.cpp
+2
-0
src/share/native/sun/font/layout/SinglePositioningSubtables.cpp
...are/native/sun/font/layout/SinglePositioningSubtables.cpp
+12
-0
src/share/native/sun/font/layout/SingleSubstitutionSubtables.cpp
...re/native/sun/font/layout/SingleSubstitutionSubtables.cpp
+12
-0
src/share/native/sun/font/layout/SingleTableProcessor.cpp
src/share/native/sun/font/layout/SingleTableProcessor.cpp
+2
-0
未找到文件。
src/share/native/sun/font/layout/AlternateSubstSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -42,6 +42,10 @@ U_NAMESPACE_BEGIN
le_uint32
AlternateSubstitutionSubtable
::
process
(
const
LEReferenceTo
<
AlternateSubstitutionSubtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
LEErrorCode
&
success
,
const
LEGlyphFilter
*
filter
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
// NOTE: For now, we'll just pick the first alternative...
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyph
,
success
);
...
...
src/share/native/sun/font/layout/CursiveAttachmentSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -41,6 +41,10 @@ U_NAMESPACE_BEGIN
le_uint32
CursiveAttachmentSubtable
::
process
(
const
LEReferenceTo
<
CursiveAttachmentSubtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyphID
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyphID
,
success
);
le_uint16
eeCount
=
SWAPW
(
entryExitCount
);
...
...
src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -42,6 +42,10 @@ U_NAMESPACE_BEGIN
le_uint32
LigatureSubstitutionSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
LEErrorCode
&
success
,
const
LEGlyphFilter
*
filter
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyph
,
success
);
...
...
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -53,6 +53,10 @@ LEGlyphID MarkToBasePositioningSubtable::findBaseGlyph(GlyphIterator *glyphItera
le_int32
MarkToBasePositioningSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
markGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
markCoverage
=
getGlyphCoverage
(
base
,
(
LEGlyphID
)
markGlyph
,
success
);
...
...
src/share/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -52,6 +52,10 @@ LEGlyphID MarkToLigaturePositioningSubtable::findLigatureGlyph(GlyphIterator *gl
le_int32
MarkToLigaturePositioningSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
markGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
markCoverage
=
getGlyphCoverage
(
base
,
(
LEGlyphID
)
markGlyph
,
success
);
...
...
src/share/native/sun/font/layout/MarkToMarkPosnSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -53,6 +53,10 @@ LEGlyphID MarkToMarkPositioningSubtable::findMark2Glyph(GlyphIterator *glyphIter
le_int32
MarkToMarkPositioningSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
markGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
markCoverage
=
getGlyphCoverage
(
base
,
(
LEGlyphID
)
markGlyph
,
success
);
...
...
src/share/native/sun/font/layout/MorphTables.cpp
浏览文件 @
158e093a
...
...
@@ -46,8 +46,10 @@ U_NAMESPACE_BEGIN
void
MorphTableHeader
::
process
(
const
LETableReference
&
base
,
LEGlyphStorage
&
glyphStorage
,
LEErrorCode
&
success
)
const
{
le_uint32
chainCount
=
SWAPL
(
this
->
nChains
);
LEReferenceTo
<
ChainHeader
>
chainHeader
(
base
,
success
,
chains
);
// moving header
if
(
LE_FAILURE
(
success
))
return
;
le_uint32
chainCount
=
SWAPL
(
this
->
nChains
);
LEReferenceTo
<
ChainHeader
>
chainHeader
(
base
,
success
,
chains
);
// moving header
LEReferenceToArrayOf
<
ChainHeader
>
chainHeaderArray
(
base
,
success
,
chains
,
chainCount
);
le_uint32
chain
;
...
...
src/share/native/sun/font/layout/PairPositioningSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -43,6 +43,10 @@ U_NAMESPACE_BEGIN
le_uint32
PairPositioningSubtable
::
process
(
const
LEReferenceTo
<
PairPositioningSubtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
switch
(
SWAPW
(
subtableFormat
))
{
case
0
:
...
...
@@ -74,6 +78,10 @@ le_uint32 PairPositioningSubtable::process(const LEReferenceTo<PairPositioningSu
le_uint32
PairPositioningFormat1Subtable
::
process
(
const
LEReferenceTo
<
PairPositioningFormat1Subtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
firstGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
firstGlyph
,
success
);
GlyphIterator
tempIterator
(
*
glyphIterator
);
...
...
@@ -123,6 +131,10 @@ le_uint32 PairPositioningFormat1Subtable::process(const LEReferenceTo<PairPositi
le_uint32
PairPositioningFormat2Subtable
::
process
(
const
LEReferenceTo
<
PairPositioningFormat2Subtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
firstGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
firstGlyph
,
success
);
...
...
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
浏览文件 @
158e093a
...
...
@@ -59,6 +59,8 @@ SegmentArrayProcessor::~SegmentArrayProcessor()
void
SegmentArrayProcessor
::
process
(
LEGlyphStorage
&
glyphStorage
,
LEErrorCode
&
success
)
{
if
(
LE_FAILURE
(
success
))
return
;
const
LookupSegment
*
segments
=
segmentArrayLookupTable
->
segments
;
le_int32
glyphCount
=
glyphStorage
.
getGlyphCount
();
le_int32
glyph
;
...
...
src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp
浏览文件 @
158e093a
...
...
@@ -59,6 +59,8 @@ SegmentArrayProcessor2::~SegmentArrayProcessor2()
void
SegmentArrayProcessor2
::
process
(
LEGlyphStorage
&
glyphStorage
,
LEErrorCode
&
success
)
{
if
(
LE_FAILURE
(
success
))
return
;
const
LookupSegment
*
segments
=
segmentArrayLookupTable
->
segments
;
le_int32
glyphCount
=
glyphStorage
.
getGlyphCount
();
le_int32
glyph
;
...
...
src/share/native/sun/font/layout/SegmentSingleProcessor.cpp
浏览文件 @
158e093a
...
...
@@ -59,6 +59,8 @@ SegmentSingleProcessor::~SegmentSingleProcessor()
void
SegmentSingleProcessor
::
process
(
LEGlyphStorage
&
glyphStorage
,
LEErrorCode
&
success
)
{
if
(
LE_FAILURE
(
success
))
return
;
const
LookupSegment
*
segments
=
segmentSingleLookupTable
->
segments
;
le_int32
glyphCount
=
glyphStorage
.
getGlyphCount
();
le_int32
glyph
;
...
...
src/share/native/sun/font/layout/SegmentSingleProcessor2.cpp
浏览文件 @
158e093a
...
...
@@ -60,6 +60,8 @@ SegmentSingleProcessor2::~SegmentSingleProcessor2()
void
SegmentSingleProcessor2
::
process
(
LEGlyphStorage
&
glyphStorage
,
LEErrorCode
&
success
)
{
if
(
LE_FAILURE
(
success
))
return
;
const
LookupSegment
*
segments
=
segmentSingleLookupTable
->
segments
;
le_int32
glyphCount
=
glyphStorage
.
getGlyphCount
();
le_int32
glyph
;
...
...
src/share/native/sun/font/layout/SimpleArrayProcessor.cpp
浏览文件 @
158e093a
...
...
@@ -59,6 +59,8 @@ SimpleArrayProcessor::~SimpleArrayProcessor()
void
SimpleArrayProcessor
::
process
(
LEGlyphStorage
&
glyphStorage
,
LEErrorCode
&
success
)
{
if
(
LE_FAILURE
(
success
))
return
;
le_int32
glyphCount
=
glyphStorage
.
getGlyphCount
();
le_int32
glyph
;
...
...
src/share/native/sun/font/layout/SinglePositioningSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -42,6 +42,10 @@ U_NAMESPACE_BEGIN
le_uint32
SinglePositioningSubtable
::
process
(
const
LEReferenceTo
<
SinglePositioningSubtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
switch
(
SWAPW
(
subtableFormat
))
{
case
0
:
...
...
@@ -68,6 +72,10 @@ le_uint32 SinglePositioningSubtable::process(const LEReferenceTo<SinglePositioni
le_uint32
SinglePositioningFormat1Subtable
::
process
(
const
LEReferenceTo
<
SinglePositioningFormat1Subtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyph
,
success
);
if
(
LE_FAILURE
(
success
))
{
...
...
@@ -85,6 +93,10 @@ le_uint32 SinglePositioningFormat1Subtable::process(const LEReferenceTo<SinglePo
le_uint32
SinglePositioningFormat2Subtable
::
process
(
const
LEReferenceTo
<
SinglePositioningFormat2Subtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int16
coverageIndex
=
(
le_int16
)
getGlyphCoverage
(
base
,
glyph
,
success
);
if
(
LE_FAILURE
(
success
))
{
...
...
src/share/native/sun/font/layout/SingleSubstitutionSubtables.cpp
浏览文件 @
158e093a
...
...
@@ -41,6 +41,10 @@ U_NAMESPACE_BEGIN
le_uint32
SingleSubstitutionSubtable
::
process
(
const
LEReferenceTo
<
SingleSubstitutionSubtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
LEErrorCode
&
success
,
const
LEGlyphFilter
*
filter
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
switch
(
SWAPW
(
subtableFormat
))
{
case
0
:
...
...
@@ -67,6 +71,10 @@ le_uint32 SingleSubstitutionSubtable::process(const LEReferenceTo<SingleSubstitu
le_uint32
SingleSubstitutionFormat1Subtable
::
process
(
const
LEReferenceTo
<
SingleSubstitutionFormat1Subtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
LEErrorCode
&
success
,
const
LEGlyphFilter
*
filter
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyph
,
success
);
if
(
LE_FAILURE
(
success
))
{
...
...
@@ -88,6 +96,10 @@ le_uint32 SingleSubstitutionFormat1Subtable::process(const LEReferenceTo<SingleS
le_uint32
SingleSubstitutionFormat2Subtable
::
process
(
const
LEReferenceTo
<
SingleSubstitutionFormat2Subtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
LEErrorCode
&
success
,
const
LEGlyphFilter
*
filter
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyph
,
success
);
if
(
LE_FAILURE
(
success
))
{
...
...
src/share/native/sun/font/layout/SingleTableProcessor.cpp
浏览文件 @
158e093a
...
...
@@ -59,6 +59,8 @@ SingleTableProcessor::~SingleTableProcessor()
void
SingleTableProcessor
::
process
(
LEGlyphStorage
&
glyphStorage
,
LEErrorCode
&
success
)
{
if
(
LE_FAILURE
(
success
))
return
;
const
LookupSingle
*
entries
=
singleTableLookupTable
->
entries
;
le_int32
glyph
;
le_int32
glyphCount
=
glyphStorage
.
getGlyphCount
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录