fix min underline height
I noticed this for small enough sizes of Fira Code the border width for the cursor would round to zero, and then looking at eg: `man ls`, the underlined portions had no underline. Ensure that the underline size is at least 1 pixel.
This commit is contained in:
1 parent
0a6e3fda30
commit
de3ffb3428
1 file changed
+1
-1
@@ -29,7 +29,7 @@ impl RenderMetrics {
|
||||
metrics.cell_width.get().ceil() as usize,
|
||||
);
|
||||
|
||||
let underline_height = metrics.underline_thickness.get().round() as isize;
|
||||
let underline_height = metrics.underline_thickness.get().round().max(1.) as isize;
|
||||
|
||||
let descender_row =
|
||||
(cell_height as f64 + (metrics.descender - metrics.underline_position).get()) as isize;
|
||||
|
||||
Reference in new issue
Block a user