From b5cc37e20c59b6617c41768db11a7b5febd8aa9c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 30 Jun 2023 22:54:08 -0700 Subject: [PATCH] font: comment out debug logs --- src/font/face/coretext.zig | 17 +++++++++-------- src/font/face/freetype.zig | 18 +++++++++--------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/font/face/coretext.zig b/src/font/face/coretext.zig index b44d9905a..9fb0774da 100644 --- a/src/font/face/coretext.zig +++ b/src/font/face/coretext.zig @@ -437,14 +437,15 @@ pub const Face = struct { // const units_per_em = ct_font.getUnitsPerEm(); // const units_per_point = @intToFloat(f64, units_per_em) / ct_font.getSize(); - std.log.warn("font size size={d}", .{ct_font.getSize()}); - std.log.warn("font metrics width={d}, height={d} baseline={d} underline_pos={d} underline_thickness={d}", .{ - cell_width, - cell_height, - cell_baseline, - underline_position, - underline_thickness, - }); + // std.log.warn("font size size={d}", .{ct_font.getSize()}); + // std.log.warn("font metrics width={d}, height={d} baseline={d} underline_pos={d} underline_thickness={d}", .{ + // cell_width, + // cell_height, + // cell_baseline, + // underline_position, + // underline_thickness, + // }); + return font.face.Metrics{ .cell_width = cell_width, .cell_height = cell_height, diff --git a/src/font/face/freetype.zig b/src/font/face/freetype.zig index 41c21bd37..eab180d62 100644 --- a/src/font/face/freetype.zig +++ b/src/font/face/freetype.zig @@ -475,15 +475,15 @@ pub const Face = struct { .thickness = underline_thickness, }; - log.warn("METRICS={} width={d} height={d} baseline={d} underline_pos={d} underline_thickness={d} strikethrough={}", .{ - size_metrics, - cell_width, - cell_height, - cell_height - cell_baseline, - underline_position, - underline_thickness, - strikethrough, - }); + // log.warn("METRICS={} width={d} height={d} baseline={d} underline_pos={d} underline_thickness={d} strikethrough={}", .{ + // size_metrics, + // cell_width, + // cell_height, + // cell_height - cell_baseline, + // underline_position, + // underline_thickness, + // strikethrough, + // }); return .{ .cell_width = cell_width,