pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
1.88k stars 129 forks source link

Zathura ignores font setting with complex font names #378

Open sebastinas opened 1 year ago

sebastinas commented 1 year ago

On GitLab by @ppk on Feb 15, 2023, 15:18


On my system, I primarily use a font named Bm437 Verite 8x16, usually it's fairly simple to set up. With zathura, however, no matter the syntax used, f.e.:

set font "Bm437 Verite 8x16 12"

set font "Bm437 Verite 8x16 Regular 12"

set font "BM437 Verite 8x16 Regular" 12

zathura either continues to fall back to the default alias in monospace (Liberation Mono in my case) or in some cases discards the configuration entirely and suddenly flips to a white background. The font in question is an .otb bitmap but other fonts in the same format (Terminus, f.e.) work fine. I've sifted through bug reports / forums / man pages and haven't found anything that resembles my issue so I'm a bit confused. The same behaviour persists between configuration via zathurarc and from command prompt at runtime.

Version info:

$ zathura -v
zathura 0.4.9
girara 0.3.7 (runtime: 0.3.7)
(plugin) pdf-mupdf (0.3.9) (/usr/lib64/zathura/libpdf-mupdf.so)
sebastinas commented 1 year ago

Do you have a link to the font to reproduce the problem locally?

sebastinas commented 1 year ago

On GitLab by @ppk on Mar 30, 2023, 16:43


The example in the original post is from this pack, but I've reproduced it with more common fonts as well, like Apple's SF Mono when trying to use a medium or semibold weight.