What is Nostr?
zirias (on snac) /
npub18je…uypq
2024-10-13 06:25:56

zirias (on snac) on Nostr: After implementing "#dpi awareness" (calculate resolution of the primary screen and ...

After implementing "#dpi awareness" (calculate resolution of the primary screen and use this for #fontconfig patterns) in #Xmoji, I was unhappy with the (correct) result: Everything too large for my taste. I also added a resource dpi to override the calculated resolution, setting this to 72 gave me the previous results, but it's logically wrong.

I now did a different thing to solve this: Give the Font resource (the class name for fonts other than the emoji font) extra semantics. Xmoji now checks explicitly whether a resource for this class is set, and, if so, considers that value the "default system font", basing all sizes on that.

Now I can just add Xmoji*Font: sans-10 to my .Xresources and get the looks I like with all other settings left at their default on my 96dpi display. 🥳

If you have any objections or run into unexpected behavior testing this, please let me know. I'd like to release Xmoji 0.9 "soon". 😎


Author Public Key
npub18jert674ht8vkxndnav3h332veq04t5qdtcdekn7sdj3q8cddvsqsduypq