apply @jamesbond3142's printer fix

This commit is contained in:
Wengier
2021-11-04 20:05:39 -04:00
parent c72616f5a5
commit 36c48c1fa7

View File

@@ -294,8 +294,10 @@ void CPrinter::selectCodepage(uint16_t cp)
void CPrinter::updateFont()
{
if (curFont != NULL)
if (curFont != NULL) {
FT_Done_Face(curFont);
curFont = NULL;
}
#if defined(USE_TTF)
if (TTF_using()&&printfont) curFont = GetTTFFace();