Merge pull request #1428 from mitchellh/freetype-bitmap

font/freetype: disallow bitmap strikes in scalable fonts
This commit is contained in:
Mitchell Hashimoto
2024-02-01 08:30:03 -08:00
committed by GitHub

View File

@ -232,6 +232,11 @@ pub const Face = struct {
try self.face.loadGlyph(glyph_index, .{ try self.face.loadGlyph(glyph_index, .{
.render = true, .render = true,
.color = self.face.hasColor(), .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; const glyph = self.face.handle.*.glyph;