font/freetype: disallow bitmap strikes in scalable fonts

Fixes #1421
This commit is contained in:
Mitchell Hashimoto
2024-02-01 08:28:33 -08:00
parent 1647115b1f
commit e4515d44c5

View File

@ -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;