convert src/font to use new pkg/freetype

This commit is contained in:
Mitchell Hashimoto
2022-08-28 22:22:16 -07:00
parent 28e9619361
commit f1abca51f7
8 changed files with 109 additions and 118 deletions

View File

@@ -240,8 +240,8 @@ pub fn create(alloc: Allocator, loop: libuv.Loop, config: *const Config) !*Windo
const window_size = try window.getSize();
var grid = try Grid.init(alloc, .{
.points = config.@"font-size",
.xdpi = @floatToInt(u32, x_dpi),
.ydpi = @floatToInt(u32, y_dpi),
.xdpi = @floatToInt(u16, x_dpi),
.ydpi = @floatToInt(u16, y_dpi),
});
try grid.setScreenSize(.{ .width = window_size.width, .height = window_size.height });
grid.background = .{