font/freetype: hardcode DPI in test to avoid variation between OS

This commit is contained in:
Mitchell Hashimoto
2024-12-30 12:01:31 -08:00
committed by Jonathan Lopez
parent c95a28498d
commit 32c7e47b02

View File

@ -1029,7 +1029,11 @@ test "bitmap glyph" {
defer atlas.deinit(alloc);
// 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();
// glyph 77 = 'i'