font: lower interface requirement for face

This commit is contained in:
Mitchell Hashimoto
2022-10-08 10:07:35 -07:00
parent 0ff79a0623
commit a21dda2b08

View File

@ -119,7 +119,7 @@ pub fn renderGlyph(
// Uncached, render it // Uncached, render it
const face = try self.group.faceFromIndex(index); const face = try self.group.faceFromIndex(index);
const atlas: *Atlas = if (face.hasColor()) &self.atlas_color else &self.atlas_greyscale; const atlas: *Atlas = if (face.presentation == .emoji) &self.atlas_color else &self.atlas_greyscale;
const glyph = self.group.renderGlyph( const glyph = self.group.renderGlyph(
alloc, alloc,
atlas, atlas,