radu2427 has quit [Read error: Connection reset by peer]
radu24275 has joined #foot
radu24275 has quit [Read error: Connection reset by peer]
radu24275 has joined #foot
martinrad has joined #foot
ayushnix has quit [Remote host closed the connection]
ayushnix has joined #foot
ayushnix has joined #foot
ayushnix has quit [Changing host]
mx08 has joined #foot
radu24275 has quit [Read error: Connection reset by peer]
amy_ has joined #foot
Ordoviz has joined #foot
Ordoviz has quit [Ping timeout: 246 seconds]
xenrox has quit [Remote host closed the connection]
xenrox has joined #foot
Ordoviz has joined #foot
amy_ has quit [Quit: WeeChat 3.4.1]
Ordoviz has quit [Ping timeout: 268 seconds]
Ordoviz has joined #foot
Ordoviz has quit [Quit: WeeChat 3.7.1]
ayushnix has quit [Remote host closed the connection]
ayushnix has joined #foot
talismanick has quit [Ping timeout: 255 seconds]
ayushnix has quit [Remote host closed the connection]
ayushnix has joined #foot
ayushnix has quit [Ping timeout: 244 seconds]
ayushnix has joined #foot
ayushnix has joined #foot
ayushnix has quit [Changing host]
ayushnix has quit [Remote host closed the connection]
ayushnix has joined #foot
ayushnix has joined #foot
ayushnix has quit [Changing host]
sentriz has quit [Read error: Connection reset by peer]
sentriz has joined #foot
qyliss has quit [Remote host closed the connection]
qyliss has joined #foot
ayushnix has quit [Remote host closed the connection]
rodrgz has joined #foot
helmut has joined #foot
<helmut>
hi. I would like to keep the font I'm using with xterm when switching to foot. using xfontsel I identified it as -misc-fixed-medium-r-normal--20-140-100-100-c-100-iso8859-1
<helmut>
if I pass that to foot -f, I get dejavu and a warning about it not being monospace. it looks completely different
<helmut>
I suppose I'm doing it wrong, but maybe you know how to do better :)
<dnkl>
helmut: foot uses fontconfig for font lookup. You can use fc-list to list the names (in the format foot expects) of all fonts.
<dnkl>
fc-list also prints the filename of the font file, so if you can get xfontsel to print the filename, you can use that info to match the fontconfig name
<helmut>
dnkl: thank you. that matches 100% what I figured thus far. unfortunately, fc-list refuses to show the font. it's a pcf font, so I tried converting it using fonttosfnt, but fc-list never lists it from ~/.local/share/fonts even though fc-cache -v -f says that it found it
<dnkl>
fontconfig should handle .pcf-files
<dnkl>
you shouldn't have to convert it
<dnkl>
maybe it's just in a directory that isn't searched by fontconfig by default?
<helmut>
tried the unconverted now (copying it to ~/.local/share/fonts as that definitely is searched). fc-cache -f -v tells me about it. fc-list doesn't know aboutit
<dnkl>
not sure what could be wrong. I'd probably start strace:ing fc-list, to see if it even tries to look at that font
<dnkl>
maybe need to run mkfontdir/mkfontscale in ~/.local/share/fonts?
<helmut>
neither of those helped. with strace I can see that it considers the directory. it reads the relevant ~/.cache/fontconfig file that contains the font metadata and then proceeds to do something else. i.e. the font file itself is never opened nor listed
<helmut>
though that may not mean too much as fc-list does not open any fonts. it works from the cache alone and the cache seems reasonable
<dnkl>
helmut: maybe you have bitmap fonts globally disabled in fontconfig
<dnkl>
there should be a conf-file included with fontconfig that enables bitmap fonts. See if enabling it helps
<helmut>
you're my hero of the day again. spot on.
<helmut>
I've looked through /etc/fonts/conf.d earlier, but it was many files and I didn't know what to look for.
rodrgz has quit [Quit: WeeChat 3.7.1]
<dnkl>
glad we managed to get it working 🙂. Which font are you using?
<helmut>
still figuring out how to express it to fc
<helmut>
I happen to hate antialiased fonts in the terminal even though everyone else likes them
Nulo has quit [Read error: Connection reset by peer]
<dnkl>
play around with the size to get the right one
<helmut>
I happen to miss some font package and it falls back to dejavu
<dnkl>
if you have the pfc-file and fc-list sees it, then it's just a matter of setting the font-name correctly
<dnkl>
you can test it with fc-match (instead of restarting foot)
<helmut>
I did tests with fc-match, yes
<dnkl>
if fc-list sees it, you should be able to use everything after the ": " as font-name in both fc-match and foot
<helmut>
unfortunately, that text is not unique and I get a different fontsize
<dnkl>
that's why I said play around with the font size
<dnkl>
fc-match "Misc Fixed:style=Regular:size=X"
<helmut>
also fc-match interprets fonts slightly differently to foot. size=N seems to be height for fc-match and width for foot
<dnkl>
no, it's definitely *not* width
<dnkl>
but foot uses your monitor's DPI to size the font
<dnkl>
not sure what fc-match defaults to. Maybe 75
<dnkl>
try pixelsize=N instead of size=N
<helmut>
that probably is the difference. I happen to not know how wayland communicates dpi (only for X I know it)
<dnkl>
wayland doesn't, really. But it does provide enough information that foot can calculate it
<helmut>
right again.
<dnkl>
you may want to read the foot.ini man page, and specifically the dpi-aware option
<helmut>
the physical size in wlr-randr looks reasonable to me
<dnkl>
foot will log the DPI. If you want to compare with fc-match, you can manually set the dpi: "fc-match font-name:size=N:dpi=X"
<helmut>
foot's dpi calculation result looks reasonable to me.
<helmut>
it all just works once you figure that debian disables bitmap fonts by default and figure out how to name the font. none of that was foot-specific. I'm not surprised given my earlier attempts at foot where none of the issues were due to foot. (-:
<dnkl>
note that foot is more or less unique here. Most applications use a fixed DPI of 96. Meaning, fonts of size 'N' will typically have a different size in foot, compared to other applications.
<dnkl>
thanks :) but foot has/have its share of bugs too
martinrad has quit [Quit: WeeChat 3.7.1]
avane has quit [Remote host closed the connection]