Skip to content

Commit

Permalink
font: Enable bitmap glyphs for non-color faces
Browse files Browse the repository at this point in the history
This allows for crisp bitmap font rendering once again.
  • Loading branch information
sin-ack committed Dec 29, 2024
1 parent 7bbc9c6 commit 4eb01b5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/font/face/freetype.zig
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ pub const Face = struct {
self.face.loadGlyph(glyph_id, .{
.render = true,
.color = self.face.hasColor(),
.no_bitmap = !self.face.hasColor(),
}) catch return false;

// If the glyph is SVG we assume colorized
Expand Down Expand Up @@ -323,14 +322,6 @@ pub const Face = struct {
// glyph properties before render so we don't render here.
.render = !self.synthetic.bold,

// 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.
//
// This must be enabled for color faces though because those are
// often colored bitmaps, which we support.
.no_bitmap = !self.face.hasColor(),

// use options from config
.no_hinting = !self.load_flags.hinting,
.force_autohint = !self.load_flags.@"force-autohint",
Expand Down

0 comments on commit 4eb01b5

Please sign in to comment.