Fix setting guifontwide to redraw texts and clear the cache

Previously setting `guifontwide` doesn't do anything for drawn text, and
you have to set a new `guifont` in order for it to clear.
This commit is contained in:
Yee Cheng Chin
2020-12-09 22:55:27 -08:00
parent 10a5c8bbaf
commit 9dda8c0868
+6
View File
@@ -409,6 +409,12 @@ static void grid_free(Grid *grid) {
[fontWide release];
fontWide = [newFont retain];
}
[self clearAll];
[fontVariants removeAllObjects];
[characterStrings removeAllObjects];
[characterLines removeAllObjects];
}
- (NSFont *)font