mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
font/freetype: hardcode DPI in test to avoid variation between OS
This commit is contained in:

committed by
Jonathan Lopez

parent
c95a28498d
commit
32c7e47b02
@ -1029,7 +1029,11 @@ test "bitmap glyph" {
|
|||||||
defer atlas.deinit(alloc);
|
defer atlas.deinit(alloc);
|
||||||
|
|
||||||
// Any glyph at 12pt @ 96 DPI is a bitmap
|
// Any glyph at 12pt @ 96 DPI is a bitmap
|
||||||
var ft_font = try Face.init(lib, testFont, .{ .size = .{ .points = 12 } });
|
var ft_font = try Face.init(lib, testFont, .{ .size = .{
|
||||||
|
.points = 12,
|
||||||
|
.xdpi = 96,
|
||||||
|
.ydpi = 96,
|
||||||
|
} });
|
||||||
defer ft_font.deinit();
|
defer ft_font.deinit();
|
||||||
|
|
||||||
// glyph 77 = 'i'
|
// glyph 77 = 'i'
|
||||||
|
Reference in New Issue
Block a user