Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search highlighting misaligned when font file doesn't exist. #18

Open
deathtrip opened this issue Jun 22, 2024 · 1 comment
Open

Search highlighting misaligned when font file doesn't exist. #18

deathtrip opened this issue Jun 22, 2024 · 1 comment

Comments

@deathtrip
Copy link

When you specify a font file that doesn't exist in manglrc, mangl doesn't fallback to the default font, as is the case when there's no config file. Instead the font seems correct, but when searching for a string, the highlight is misaligned.

@zigalenarcic
Copy link
Owner

Hi
It happens because the selected font is not monospaced. Highlights etc. are calculated as if the font is monospace (you're supposed to use man pages only with monospace fonts because there are ascii tables and other things requiring alignment).
I'm not aware what a good solution would be as fc-match returns some answer even for nonexisting font names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants