mirror of
https://github.com/openjdk/jdk7u.git
synced 2025-12-10 10:13:47 -06:00
8273748: Improve Solaris font rendering
Reviewed-by: yan
This commit is contained in:
parent
bb03b056ef
commit
eed014972c
@ -49,6 +49,11 @@ ContextualGlyphSubstitutionProcessor2::ContextualGlyphSubstitutionProcessor2(
|
||||
{
|
||||
if(LE_FAILURE(success)) return;
|
||||
le_uint32 perGlyphTableOffset = SWAPL(contextualGlyphHeader->perGlyphTableOffset);
|
||||
if (perGlyphTableOffset & 0x03) { // incorrect alignment for 32 bit tables
|
||||
LE_DEBUG_BAD_FONT("perGlyphTableOffset: incorrect alignment");
|
||||
success = LE_MEMORY_ALLOCATION_ERROR;
|
||||
return;
|
||||
}
|
||||
perGlyphTable = LEReferenceToArrayOf<le_uint32> (stHeader, success, perGlyphTableOffset, LE_UNBOUNDED_ARRAY);
|
||||
entryTable = LEReferenceToArrayOf<ContextualGlyphStateEntry2>(stHeader, success, entryTableOffset, LE_UNBOUNDED_ARRAY);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user