Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.21k stars 94 forks source link

.pcf Font Support #384

Open merrittlj opened 7 months ago

merrittlj commented 7 months ago

It doesn't seem like .pcf fonts work, unless I am inputting the name wrong in some way. In other applications that I know support .pcf fonts, I would type something such as "ProFont:size=22", but in bemenu "ProFont 22" does not work(ProFont is installed as a .pcf font).

On a side note, is it possible to force disable anti-aliasing and use other stylistic options(such as bold)?

Cloudef commented 7 months ago

Bemenu font support is completely provided by pango, the relevant function used by bemenu is this https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html

It seems pango used to support pcf through freetype before but has dropped the support https://blogs.gnome.org/mclasen/2019/05/25/pango-future-directions/ https://gitlab.gnome.org/GNOME/pango/-/issues/386

merrittlj commented 7 months ago

Ah, Pango. They removed bitmap font support sometime back, so no .pcf or similar, but I think OTBs still work fine.

On a side note, should styles be documented in the --help option/man page? Only size is shown as an option, and this may not be super user-friendly for those who want to use other stylistic options.