Skip to content

Commit

Permalink
add TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
futile committed Dec 30, 2023
1 parent 4f23d65 commit 182c125
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wezterm-gui/src/customglyph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3754,6 +3754,8 @@ impl GlyphCache {
{
// adjust the width, i.e., what `BlockCoord::One` resolves to, to account for the width
// of the stroke.
// TODO: why does `.floor()` seem to do the right thing here? what is actually
// correct?
let width_adjustment =
(style.stroke_width(metrics.underline_height as f32) / 2.).floor() as usize;
let width_adjusted_for_stroke = width - width_adjustment;
Expand Down

0 comments on commit 182c125

Please sign in to comment.