Re: [dev] [st] fixed font doesn't work

From: Hadrien Lacour <hadrien.lacour_AT_posteo.net>
Date: Sun, 29 Jan 2023 20:53:41 +0000

On Sun Jan 29, 2023 at 5:35 PM CET, Mikhail wrote:
> Hi, I'd like to switch from xterm to st, but i want to keep xterm's
> default font, if I do
>
> xterm -fn '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
>
> everything is ok - it's the font I want to use, but if i do
>
> st -f '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1'
>
> i see different font, much larger and much uglier.
>
> Some fc-* commands (font 6x13 also the font I'd like to use):
>
> $ fc-match -- -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
> DejaVuSans.ttf: "DejaVu Sans" "Book"
>
> $ fc-match 6x13
> DejaVuSans.ttf: "DejaVu Sans" "Book"
>
> $ fc-list | grep 6x13
> /usr/X11R6/lib/X11/fonts/misc/6x13O.pcf.gz: Fixed:style=Oblique SemiCondensed
> /usr/X11R6/lib/X11/fonts/misc/6x13B-ISO8859-1.pcf.gz: Fixed:style=Bold SemiCondensed
> /usr/X11R6/lib/X11/fonts/misc/6x13B.pcf.gz: Fixed:style=Bold SemiCondensed
> /usr/X11R6/lib/X11/fonts/misc/6x13O-ISO8859-1.pcf.gz: Fixed:style=Oblique SemiCondensed
> /usr/X11R6/lib/X11/fonts/misc/6x13.pcf.gz: Fixed:style=SemiCondensed
> /usr/X11R6/lib/X11/fonts/misc/6x13-ISO8859-1.pcf.gz: Fixed:style=SemiCondensed
> /usr/X11R6/lib/X11/fonts/misc/clR6x13.pcf.gz: Clean:style=Regular
>
>
> How to make st use default xterm's font? It's OpenBSD current.

st uses xft, try `st -f 'Misc Fixed:style=SemiCondensed:pixelsize=13'`.
Received on Sun Jan 29 2023 - 21:53:41 CET

This archive was generated by hypermail 2.3.0 : Sun Jan 29 2023 - 22:00:08 CET