mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
font: comment out debug logs
This commit is contained in:
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user