font: comment out debug logs

This commit is contained in:
Mitchell Hashimoto
2023-06-30 22:54:08 -07:00
parent 42cc11e32c
commit b5cc37e20c
2 changed files with 18 additions and 17 deletions

View File

@ -437,14 +437,15 @@ pub const Face = struct {
// const units_per_em = ct_font.getUnitsPerEm(); // const units_per_em = ct_font.getUnitsPerEm();
// const units_per_point = @intToFloat(f64, units_per_em) / ct_font.getSize(); // 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 size size={d}", .{ct_font.getSize()});
std.log.warn("font metrics width={d}, height={d} baseline={d} underline_pos={d} underline_thickness={d}", .{ // std.log.warn("font metrics width={d}, height={d} baseline={d} underline_pos={d} underline_thickness={d}", .{
cell_width, // cell_width,
cell_height, // cell_height,
cell_baseline, // cell_baseline,
underline_position, // underline_position,
underline_thickness, // underline_thickness,
}); // });
return font.face.Metrics{ return font.face.Metrics{
.cell_width = cell_width, .cell_width = cell_width,
.cell_height = cell_height, .cell_height = cell_height,

View File

@ -475,15 +475,15 @@ pub const Face = struct {
.thickness = underline_thickness, .thickness = underline_thickness,
}; };
log.warn("METRICS={} width={d} height={d} baseline={d} underline_pos={d} underline_thickness={d} strikethrough={}", .{ // log.warn("METRICS={} width={d} height={d} baseline={d} underline_pos={d} underline_thickness={d} strikethrough={}", .{
size_metrics, // size_metrics,
cell_width, // cell_width,
cell_height, // cell_height,
cell_height - cell_baseline, // cell_height - cell_baseline,
underline_position, // underline_position,
underline_thickness, // underline_thickness,
strikethrough, // strikethrough,
}); // });
return .{ return .{
.cell_width = cell_width, .cell_width = cell_width,