Apache OpenOffice (AOO) Bugzilla – Issue 126753
Invalid parse of GSUB of OpenType font
Last modified: 2023-02-28 14:40:15 UTC
Created attachment 85220 [details] Picture with wrong punctuation glyphs In Japanese vertical text writting on Writer document, some glyphs are not replaced for vertical writting by GSUB table even with OpenType font having GSUB table. This is because the parse of the GSUB table in the font is invalid. In FreetypeServerFont::ApplyGSUB function, FeatureParams entry have to be ignored while reading feature table. nCntLookups is wrong without the skipping. In the attached picture, - left: AOO 4.1.2, 1st and 4th lines contains wrong punctuation glyphs - right: with fix, 4th line has been fixed. But 1st line is still the same because Ume Plus is truetype font and not GSUB provided.
Created attachment 85221 [details] Patch to fix invalid read of GSUB tables of OpenType fonts See the report description.
Fixed on revision 1721674.
Cherry-picked for AOO41X with: https://github.com/apache/openoffice/commit/d61abae7b9c5f1d9d7773fdd3990a1027142cff0