Gnus development mailing list
 help / color / mirror / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: ding@gnus.org
Subject: Re: Italics in Emacs
Date: Fri, 28 Jan 2011 12:44:39 -0500	[thread overview]
Message-ID: <m3y664disg.fsf@jhcloos.com> (raw)
In-Reply-To: <8739od3o40.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 27 Jan 2011 15:47:59 -0800")

>>>>> "LI" == Lars Ingebrigtsen <larsi@gnus.org> writes:

LI> Can't Emacs auto-slant things to make semi-italics?  Googling shows
LI> people saying stuff like "slant=1", but I can't get that to work...

Fontconfig patterns have support for that.  For rxvt-unicode, which
uses separate X resources for font, boldFont, italicFont et cetera
I use this as one of my fallbacks:

           *font: xft:CODE2002:pixelsize=14
       *boldFont: xft:CODE2002:pixelsize=14:embolden=true
     *italicFont: xft:CODE2002:pixelsize=14:matrix=1 0.2 0 1
 *boldItalicFont: xft:CODE2002:pixelsize=14:embolden=true:matrix=1 0.2 0 1

Fontconfig's /etc/fonts/conf.avail/90-synthetic.conf is supposed to
enable that matrix if an oblique font is requested but only roman is
found, and also to enable embolden when the request weight is more
than medium but the returned font is <= medium.

It works for simple libxft apps such as xfd(1):

:; xfd -fa Inconsolata:slant=Oblique
:; xfd -fa Inconsolata:weight=Bold
:; xfd -fa Inconsolata:weight=Bold:slant=Oblique

provided that you have 90-synthetic.conf linked into /etc/fonts/conf.d
(and thus enabled).

A test shows that the embolden part of that does work in Emacs, but that
the obliquing does not.

It should be fixable, though.  I'd suggest M-x report-emacs-bug.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



  parent reply	other threads:[~2011-01-28 17:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1Pi2Tj-0007Gy-00@quimby.gnus.org>
2011-01-26 10:27 ` [gnus git] branch master updated: =1= * shr.el: Revert change that made headings use different-sized faces. The Emacs display engine isn't advanced enough that, for instance, tables can comfortably use differntly-sized faces Julien Danjou
2011-01-27  1:28   ` Italics in Emacs (was: [gnus git] branch master updated: =1= * shr.el: Revert change that made headings use different-sized faces. The Emacs display engine isn't advanced enough that, for instance, tables can comfortably use differntly-sized faces.) Lars Ingebrigtsen
2011-01-27  9:25     ` Italics in Emacs Julien Danjou
2011-01-27 23:47       ` Lars Ingebrigtsen
2011-01-28  9:47         ` Julien Danjou
2011-01-28 16:03         ` Ted Zlatanov
2011-01-28 16:41           ` Eric S Fraga
2011-01-28 22:05             ` Lars Ingebrigtsen
2011-01-28 23:41               ` Eric S Fraga
2011-01-29  1:17                 ` Lars Ingebrigtsen
2011-01-28 22:04           ` Lars Ingebrigtsen
2011-01-28 23:11             ` Ted Zlatanov
2011-01-29  1:56               ` Lars Ingebrigtsen
2011-01-31 17:15                 ` Ted Zlatanov
2011-01-31 18:53                   ` Steinar Bang
2011-01-28 17:44         ` James Cloos [this message]
2011-01-28 22:10           ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3y664disg.fsf@jhcloos.com \
    --to=cloos@jhcloos.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).