xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
589 stars 274 forks source link

Fallback fonts #646

Closed iliayar closed 2 years ago

iliayar commented 2 years ago

Description

Related to #208. Moving MinXft library and xmobar's fallback fonts logic to XMonad prompts, tabs labels, etc. So now, for example, prompts are able to display text and emoji. You can specify fonts to use through comma-separated list. It also requires manual bindings from the Xft library, because https://hackage.haskell.org/package/X11-xft doesn't have binding for vital XftCharExists function.

Checklist

slotThe commented 2 years ago

@iliayar we now have the CI set up for the X11-xft repo, so could you PR that portion of this against https://github.com/xmonad/X11-xft? Thanks!

slotThe commented 2 years ago

Posting this conversation from IRC so it's not lost:

<liskin> Solid: have you thought the X11-xft dependency bump through? (I
         haven't, but someone should)
<liskin> Solid: stack init with only xmonad/xmonad-contrib might break,
         perhaps? or will it automatically detect that X11-xft needs to
         be added to extra-deps?
<Solid>  liskin: stack is smart, but not in a way that's benneficial to
         us :/ It doesn't seem to care about the projects stack.yaml
         file, only about the cabal file.
<Solid>  If xft specifies a version bound that stack can't find in a
         snapshot it'll just disable the flag
<Solid>  but otherwise it tries to download the newest x11-xft on
         stackage and doesn't include contrib's extra deps
<liskin> Solid: in that case we might need to ifdef the new
         functionality :-/
slotThe commented 2 years ago

Thanks!