font/freetype: enable bitmap loading for colored faces

This commit is contained in:
Mitchell Hashimoto
2024-02-01 08:40:18 -08:00
parent 52c43af0cc
commit 61b964b958

View File

@ -236,7 +236,10 @@ pub const Face = struct {
// Disable bitmap strikes for now since it causes issues with // Disable bitmap strikes for now since it causes issues with
// our cell metrics and rasterization. In the future, this is // our cell metrics and rasterization. In the future, this is
// all fixable so we can enable it. // all fixable so we can enable it.
.no_bitmap = true, //
// This must be enabled for color faces though because those are
// often colored bitmaps, which we support.
.no_bitmap = !self.face.hasColor(),
}); });
const glyph = self.face.handle.*.glyph; const glyph = self.face.handle.*.glyph;