Skip to content

Commit

Permalink
8273748: Improve Solaris font rendering
Browse files Browse the repository at this point in the history
Reviewed-by: yan, andrew
  • Loading branch information
Andrew Brygin committed Jan 6, 2022
1 parent f9d9c29 commit 740c50b
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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);
}
Expand Down

0 comments on commit 740c50b

Please sign in to comment.