sdushantha / fontpreview

Highly customizable and minimal font previewer written in bash
MIT License
916 stars 39 forks source link

[Feature Request] Print font name in X11 font format #3

Open murlakatamenka opened 4 years ago

murlakatamenka commented 4 years ago

Relevant Arch Wiki page.

xfontsel -print
# ... pick a font with desired properties
-*-fira code-*-*-*-*-*-*-*-*-*-*-*-*

Programs that use it:

maxdevjs commented 4 years ago

In my shallow tests I found distros that do not install xfontsel by default. In case, should be added as dependency.

murlakatamenka commented 4 years ago

The idea of this proposal is to get rid of xfontsel because it feels quite ancient and isn't convenient to use. So I don't understand why it should be a dependency.

maxdevjs commented 4 years ago

Right, I misunderstood :)

What distro do you use? What exact program (and in which package, if applicable) you suggest? This way checks against a few different distros can be made.

murlakatamenka commented 4 years ago

I use Arch, xfontsel is from xorg-xfontsel package in official repos.

maxdevjs commented 4 years ago

xfontsel is what you already to use. What exact program (and in which package, if applicable) do you suggest as alternative?

murlakatamenka commented 4 years ago

Alternative to xfontsel itself? I don't know any that will output X11 font format. If we speak about just previewing fonts them I'm sure any Linux DE Is capable of it, KDE or Gnome, for example. There is also a program FontMatrix for this.

maxdevjs commented 4 years ago

My point is to identify if exists something that possibly every distro installs as default. Also, when using exclusively WMs most of the "add-ons" of a common DE are not installed by default.

@sdushantha do you have suggestions?

sdushantha commented 4 years ago

@maxdevjs Sorry, cant be much help because I have never used the X11 font format before, so I havent played around with xfonsel or anything that is similar to it.