mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
Merge pull request #1428 from mitchellh/freetype-bitmap
font/freetype: disallow bitmap strikes in scalable fonts
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user