From e4515d44c5cbc8ccd6e1fa64ae9f74152b8e1270 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 1 Feb 2024 08:28:33 -0800 Subject: [PATCH] font/freetype: disallow bitmap strikes in scalable fonts Fixes #1421 --- src/font/face/freetype.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/font/face/freetype.zig b/src/font/face/freetype.zig index 75ec3e4af..f130b409e 100644 --- a/src/font/face/freetype.zig +++ b/src/font/face/freetype.zig @@ -232,6 +232,11 @@ pub const Face = struct { try self.face.loadGlyph(glyph_index, .{ .render = true, .color = self.face.hasColor(), + + // Disable bitmap strikes for now since it causes issues with + // our cell metrics and rasterization. In the future, this is + // all fixable so we can enable it. + .no_bitmap = true, }); const glyph = self.face.handle.*.glyph;