Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
8273748: Improve Solaris font rendering
Browse files Browse the repository at this point in the history
Reviewed-by: yan
  • Loading branch information
Andrew Brygin committed Jan 6, 2022
1 parent bb03b05 commit eed0149
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 eed0149

Please sign in to comment.