mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
render: OSD: center text vertically
Rewrite render_osd(), and instead of passing in an y-offset, let render_osd() itself center the text inside the OSD buffer. This is done using the same baseline calculation term_font_baseline() does, except we use the buffer height instead of the line height. Note that most OSDs are sized based on the line height... Closes #1430
This commit is contained in:
parent
e567250449
commit
a3d54614c7
2 changed files with 20 additions and 9 deletions
|
|
@ -53,6 +53,10 @@
|
|||
### Fixed
|
||||
|
||||
* `-f,--font` command line option not affecting `csd.font` (if unset).
|
||||
* Vertical alignment in URL jump labels, and the scrollback position
|
||||
indicator. The fix in 1.15.2 was incorrect, and was reverted in the
|
||||
last minute. But we forgot to remove the entry from the changelog
|
||||
([#1430][1430]).
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue