1

I use TrueType fonts with Emacs under X.

There are specific Italic and Bold files for most fonts.

All of them are recognized by font config and therefore by emacs.

How does Emacs uses bold and italic? Does it use the specific font that is provided or does it modify the regular font to make it italic or bold?

6
  • I believe Emacs will not try to create bold or oblique font variants "by hand". For example I use Terminus by default, and I know in some contexts Emacs wants to use an oblique font, such as for some headers in Message mode. But if I don't install the separate package with the Terminus oblique font, Emacs just shows the regular Terminus. – q.undertow May 19 '20 at 18:03
  • Hmmm interesting. I still have Italics even if the font I'm using does not have any – Ernest Bunbury May 19 '20 at 18:06
  • By the way, I know the Emacs interface to fontconfig to be buggy. At the very least Emacs seems to ignore <alias> elements, unlike other programs such as rxvt. So beware, you may have to specify the exact name of the font you want Emacs to use. – q.undertow May 19 '20 at 18:08
  • What is happening to me is that /italics/ are not shown like italics, but as underlined. – yPunto to May 20 '20 at 2:53
  • Fontconfig can synthesize bold and italic variants of fonts if it's configured to do so, other programs like Emacs can reuse that effort. – wasamasa May 20 '20 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.