mirror of
https://github.com/Garhoogin/NitroPaint.git
synced 2025-06-18 22:35:31 -04:00
Fix font data output corruption
This commit is contained in:
parent
d00e398d78
commit
ed7ee22eb9
@ -1697,6 +1697,7 @@ static int NftrWriteNftrCommon(NFTR *nftr, BSTREAM *stream) {
|
||||
StListAdd(&widList, &totalWidth);
|
||||
|
||||
//test: search for the glyph bitmap before
|
||||
memset(tmpbuf, 0, glyphSize);
|
||||
NftrWriteGlyphToBytes(tmpbuf, nftr, glyph, 0);
|
||||
int found = NftrSearchMatchingNftrGlyph(tmpbuf, glyphSize, wid, widEntrySize, glyphStream.buffer, glyphStream.size,
|
||||
widStream.buffer, widStream.size);
|
||||
|
Loading…
Reference in New Issue
Block a user