mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
main: verify primary font is monospaced at startup
Load a couple of ASCII glyphs and check if their advance widths matches. If not, warn the user that the font is probably not monospaced. This can be disabled by setting tweak.font-monospace-warn=no. Closes #704.
This commit is contained in:
parent
bb948d03e1
commit
8ffc556d44
4 changed files with 72 additions and 0 deletions
5
main.c
5
main.c
|
|
@ -480,6 +480,11 @@ main(int argc, char *const *argv)
|
|||
conf.presentation_timings = presentation_timings;
|
||||
conf.hold_at_exit = hold;
|
||||
|
||||
if (conf.tweak.font_monospace_warn && conf.fonts[0].count > 0) {
|
||||
check_if_font_is_monospaced(
|
||||
conf.fonts[0].arr[0].pattern, &conf.notifications);
|
||||
}
|
||||
|
||||
struct fdm *fdm = NULL;
|
||||
struct reaper *reaper = NULL;
|
||||
struct wayland *wayl = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue