font: fallback should not restrict to only monospace

This commit is contained in:
Mitchell Hashimoto
2023-09-24 09:05:40 -07:00
parent 8e083d8618
commit 16cecc082a

View File

@ -257,6 +257,7 @@ pub fn indexForCodepoint(
.size = self.size.points, .size = self.size.points,
.bold = style == .bold or style == .bold_italic, .bold = style == .bold or style == .bold_italic,
.italic = style == .italic or style == .bold_italic, .italic = style == .italic or style == .bold_italic,
.monospace = false,
}) catch break :discover; }) catch break :discover;
defer disco_it.deinit(); defer disco_it.deinit();