Re: Controlling the XFT fonts that exmh uses for message display?
"Welch, Brent" <[email protected]> Fri, 18 May 2012 14:11:03 +0000
| Newsgroups | gmane.mail.exmh.user |
|---|---|
| Message-ID | <[email protected]> |
If you hack up a patch we can help clean it up. It's going to boil down to matching font names Brent On May 18, 2012, at 6:56 AM, "Chris Siebenmann" <[email protected]> wrote: > I'm considering switching my exmh to use XFT fonts (via switching to > tk8.5), in part to match the rest of my X environment and in part to get > better Unicode font support (I'm very used to my old X bitmap fonts, but > they are behind the times). > > The choice of what fonts to use when for MIME messages is normally > controlled by the *mime_<charset>_<type>_families: resources in > exmh-defaults, eg '*mime_iso-8859-1_plain_families' (and then the > starting size is set with *mimeFontSize). So normally I might just > set some face names in those resources. > > However, looking at the code in lib/mime.tcl's Mime_GetFont() (which > actually does the lookup) suggests that this isn't going to work; its > implementation seems very strongly tied to XLFD font names. Run on a > tk8.5 that supports XFT fonts and not XLFD fonts, I expect it to fail > entirely and give me only (at best) whatever *Msg*font is set to (or the > XFT 'fixed' by default). This seems less than ideal, especially for MIME > types that want a proportional font or different font sizes. > > Has anyone dealt with this issue and gotten exmh to use XFT fonts > well for message display, or am I barking up the wrong tree here? > > (Or is this something that I should really ask on exmh-devel instead?) > > - cks > PS: In theory one could revise Mime_GetFont() et al to do an XFT-based > font specification and font lookup if TK is XFT-capable, but this sort > of change is probably beyond my TCL/TK/XFT coding capabilities right > now. If I got something working it would probably not look very well. > > _______________________________________________ > Exmh-users mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/exmh-users