mirror of
https://github.com/wez/wezterm.git
synced 2024-11-27 12:23:46 +03:00
boxmodel: fix missing bearing_x / x_offset
Fixes up horizontal positioning in the fancy tab bar and spacing in tab titles in some cases. refs: https://github.com/wez/wezterm/issues/2357
This commit is contained in:
parent
3e298dc63a
commit
3941d2a564
@ -861,6 +861,7 @@ impl super::TermWindow {
|
||||
- (glyph.y_offset + glyph.bearing_y).get() as f32
|
||||
+ element.baseline;
|
||||
|
||||
let pos_x = pos_x + (glyph.x_offset + glyph.bearing_x).get() as f32;
|
||||
let width = texture.coords.size.width as f32 * glyph.scale as f32;
|
||||
let height = texture.coords.size.height as f32 * glyph.scale as f32;
|
||||
if pos_x + glyph.x_advance.get() as f32
|
||||
|
Loading…
Reference in New Issue
Block a user