mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-19 10:16:12 +03:00
Use unrounded cell_width to calculate icon_width
This commit is contained in:
@ -203,7 +203,7 @@ pub fn calc(face: FaceMetrics) Metrics {
|
||||
// the cell_width and cell_height derived from the face, and
|
||||
// not in Constraint.constrain, which is called after the
|
||||
// adjust-cell-{width,height} modifiers have been applied.
|
||||
const icon_width = 2 * cell_width * icon_height / cell_height;
|
||||
const icon_width = face.cell_width * 2 * icon_height / cell_height;
|
||||
|
||||
var result: Metrics = .{
|
||||
.cell_width = @intFromFloat(cell_width),
|
||||
|
Reference in New Issue
Block a user