pin Case sensitive, it's J and N.
OP was using grep -i
which makes it case-insensitive.
netbsdnoob once i installed for example the jetbrains font, when i did the fc-cache to update the whole [..]
Just spawn a new terminal.
netbsdnoob Given a font how do i know which string I have to insert in the .Xresources?
rvp fc-list | fgrep JetBrains | fgrep 'style=Regular'
And this is for TrueType (and Type1?) fonts. Xlib/Motif fonts instead will normally use bitmap '.pcf' fonts stored inside the X server's fontpath (unless they were build with Xft/fontconfig).
xset q | grep -A1 Path
reveals the current X11 font path.
One may use xset +fp
to add a new directory to the X server's font path:
XDG_DATA_HOME=~/.local/share
PKG_DATA_DIR=/usr/pkg/share
for dir in $(find ${XDG_DATA_HOME}/fonts/ -type d) ; do
xset +fp $dir
done
for dir in $(find ${PKG_DATA_DIR}/fonts/X11 -type d) ; do
xset +fp $dir
done
xset fp rehash
This can be put inside ~/.xinitrc.
Now, the xlsfonts(1) command can be used to query the X fonts database, and see how X11 defines those fonts for Xlib/Motif app to use. Font packages providing both .ttf and .pcf font formats will be displayed inside both the fontconfig database and the X11 font database:
~ $ xlsfonts | grep tamzen
-misc-tamzen-bold-r-normal--0-0-100-100-c-0-iso8859-1
-misc-tamzen-bold-r-normal--12-87-100-100-c-60-iso8859-1
-misc-tamzen-bold-r-normal--13-94-100-100-c-70-iso8859-1
-misc-tamzen-bold-r-normal--14-101-100-100-c-70-iso8859-1
-misc-tamzen-bold-r-normal--15-108-100-100-c-80-iso8859-1
-misc-tamzen-bold-r-normal--16-116-100-100-c-80-iso8859-1
-misc-tamzen-bold-r-normal--20-145-100-100-c-100-iso8859-1
-misc-tamzen-bold-r-normal--9-65-100-100-c-50-iso8859-1
-misc-tamzen-medium-r-normal--0-0-100-100-c-0-iso8859-1
-misc-tamzen-medium-r-normal--12-87-100-100-c-60-iso8859-1
-misc-tamzen-medium-r-normal--13-94-100-100-c-70-iso8859-1
-misc-tamzen-medium-r-normal--14-101-100-100-c-70-iso8859-1
-misc-tamzen-medium-r-normal--15-108-100-100-c-80-iso8859-1
-misc-tamzen-medium-r-normal--16-116-100-100-c-80-iso8859-1
-misc-tamzen-medium-r-normal--20-145-100-100-c-100-iso8859-1
-misc-tamzen-medium-r-normal--9-65-100-100-c-50-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--0-0-100-100-c-0-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--12-87-100-100-c-60-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--13-94-100-100-c-70-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--14-101-100-100-c-70-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--15-108-100-100-c-80-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--16-116-100-100-c-80-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--20-145-100-100-c-100-iso8859-1
-misc-tamzenforpowerline-bold-r-normal--9-65-100-100-c-50-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--0-0-100-100-c-0-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--12-87-100-100-c-60-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--13-94-100-100-c-70-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--14-101-100-100-c-70-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--15-108-100-100-c-80-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--16-116-100-100-c-80-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--20-145-100-100-c-100-iso8859-1
-misc-tamzenforpowerline-medium-r-normal--9-65-100-100-c-50-iso8859-1
~ $ fc-list | grep Tamzen
/usr/pkg/share/fonts/X11/BDF/Tamzen8x15r.bdf: Tamzen:style=Regular
/usr/pkg/share/fonts/X11/BDF/Tamzen8x16r.bdf: Tamzen:style=Regular
/usr/pkg/share/fonts/X11/BDF/Tamzen7x14b.bdf: Tamzen:style=Bold
/usr/pkg/share/fonts/X11/BDF/Tamzen10x20b.bdf: Tamzen:style=Bold
/usr/pkg/share/fonts/X11/BDF/Tamzen7x13b.bdf: Tamzen:style=Bold
/usr/pkg/share/fonts/X11/BDF/TamzenForPowerline5x9b.bdf: TamzenForPowerline:style=Bold
/usr/pkg/share/fonts/X11/PCF/TamzenForPowerline6x12b.pcf: TamzenForPowerline:style=Bold
/home/vins/.fonts/TamzenForPowerline5x9r.pcf: TamzenForPowerline:style=Regular
/usr/pkg/share/fonts/X11/PCF/TamzenForPowerline7x13b.pcf: TamzenForPowerline:style=Bold
/usr/pkg/share/fonts/X11/PCF/TamzenForPowerline7x14b.pcf: TamzenForPowerline:style=Bold
/usr/pkg/share/fonts/X11/BDF/Tamzen10x20r.bdf: Tamzen:style=Regular
/usr/pkg/share/fonts/X11/BDF/TamzenForPowerline5x9r.bdf: TamzenForPowerline:style=Regular
/usr/pkg/share/fonts/X11/PCF/TamzenForPowerline8x15b.pcf: TamzenForPowerline:style=Bold
/usr/pkg/share/fonts/X11/PCF/TamzenForPowerline8x16b.pcf: TamzenForPowerline:style=Bold
/home/vins/.fonts/Tamzen8x16b.bdf: Tamzen:style=Bold
/usr/pkg/share/fonts/X11/BDF/TamzenForPowerline8x15r.bdf: TamzenForPowerline:style=Regular
I always set a bitmap font inside ~/.Xresources for legacy applications without Xft support:
*.font: -chris2-sq-medium-r-normal--15-140-75-75-c-100-iso8859-1
*.fontList: -chris2-sq-medium-r-normal--15-140-75-75-c-100-iso8859-1
*.boldFont: -chris2-sq-bold-r-normal--15-140-75-75-c-100-iso8859-1