Fix font data output corruption

This commit is contained in:
Garhoogin 2025-05-28 00:41:11 -05:00 committed by GitHub
parent d00e398d78
commit ed7ee22eb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1697,6 +1697,7 @@ static int NftrWriteNftrCommon(NFTR *nftr, BSTREAM *stream) {
StListAdd(&widList, &totalWidth); StListAdd(&widList, &totalWidth);
//test: search for the glyph bitmap before //test: search for the glyph bitmap before
memset(tmpbuf, 0, glyphSize);
NftrWriteGlyphToBytes(tmpbuf, nftr, glyph, 0); NftrWriteGlyphToBytes(tmpbuf, nftr, glyph, 0);
int found = NftrSearchMatchingNftrGlyph(tmpbuf, glyphSize, wid, widEntrySize, glyphStream.buffer, glyphStream.size, int found = NftrSearchMatchingNftrGlyph(tmpbuf, glyphSize, wid, widEntrySize, glyphStream.buffer, glyphStream.size,
widStream.buffer, widStream.size); widStream.buffer, widStream.size);