Bring back freetype font bitmap conversion

Monaco on Mac is mono
This commit is contained in:
Mitchell Hashimoto
2022-10-16 20:47:21 -07:00
parent 9d37458ed8
commit 2e1bc7bb01
6 changed files with 148 additions and 4 deletions

View File

@@ -190,6 +190,7 @@ fn loadCoreTextFreetype(
// TODO: face index 0 is not correct long term and we should switch
// to using CoreText for rendering, too.
//std.log.warn("path={s}", .{path_slice});
self.face = try Face.initFile(lib, buf[0..path_slice.len :0], 0, size);
}