What is Nostr?
zirias (on snac) /
npub18je…uypq
2024-10-11 06:04:00

zirias (on snac) on Nostr: Hey, thanks a lot! 😎 Is it DPI aware? the widgets appeared smallish. It doesn't do ...

Hey, thanks a lot! 😎
Is it DPI aware? the widgets appeared smallish.
It doesn't do anything in that regard (and unfortunately I don't have any high-DPI device running X available for testing). It bases most sizes (except for some margin/padding values) on the default font size it gets from fontconfig, I was kind of hoping that lib would do the correct thing 🙈 – if there's an issue, maybe you could help analyzing it?
Maybe I didn't have the Xft.dpi resource set.
That won't do anything because it doesn't use Xft. I decided to go for xcb, and Xft unfortunately uses classic Xlib, so I implemented a similar thing (rasterize glyphs with freetype, upload and render them with Xrender) manually. You could of course set e.g. Xmoji*font: sans-32 to force a larger default font size...
A minor nit: make clean expects ftbuild/ to be populated.
Well, clean is called in ftbundle, but just uses find to remove any freetype source trees if found and rm -fr (which should ignore errors) for a few other files, so it should silently do nothing if you don't bundle freetype. It certainly does here. Could you show what's happening for you? Thanks!

CC: Felix Palmen :freebsd: :c64: (npub17ft…g6mq)
Author Public Key
npub18jert674ht8vkxndnav3h332veq04t5qdtcdekn7sdj3q8cddvsqsduypq