On Thu Oct 13 17:23:57 2022 +0000, Fabian Maurer wrote:
Sorry, I don't think I understand what you mean. Wasn't that part of the original code?
What I mean is that (i-dirL) is negative only when i == 0 and dirL == 1, which would matter only if pGlyphProp[0].sva.fClusterStart == 0, which I think is strange. So if you're really getting -1 index there, it's better to check why fClusterStart is 0 for a first glyph.