Details
Description
How to reproduce
- Error happens when font file is loaded
- End of cmap table reached when parsing subtable format '4'
- End of cmap, subtable format '4', reached when fetching character '%1' in range [%2, %3]
- It generates distance field even if the above error happens
- It crashes at several different points but same function MainWindow::createSfntTable()
- buffer.write(reinterpret_cast<char *>(&glyphRecord), sizeof(QtdfGlyphRecord));
- memcpy(outBits, inBits, image.width());
- QVector<QDistanceField> textures;
Font for testing:Â NanumBarunGothic.ttf
Attachments
For Gerrit Dashboard: QTBUG-76188 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
265205,2 | distancefieldgenerator: Fix cmap error for some fonts | 5.12 | qt/qttools | Status: MERGED | +2 | 0 |
265603,4 | distancefieldgenerator: Fix failure reading CMAP for some fonts | 5.12 | qt/qttools | Status: MERGED | +2 | 0 |
265694,4 | distancefieldgenerator: Fix crash with multiple textures | 5.12 | qt/qttools | Status: MERGED | +2 | 0 |