From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76098 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.gnus.general Subject: Re: Italics in Emacs Date: Fri, 28 Jan 2011 12:44:39 -0500 Message-ID: References: <877hdr8798.fsf_-_@gnus.org> <8739od3o40.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296236778 13106 80.91.229.12 (28 Jan 2011 17:46:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 Jan 2011 17:46:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M24450@lists.math.uh.edu Fri Jan 28 18:46:13 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PisOj-0000Nj-5U for ding-account@gmane.org; Fri, 28 Jan 2011 18:46:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PisOg-0001i5-25; Fri, 28 Jan 2011 11:46:10 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PisOe-0001hv-SR for ding@lists.math.uh.edu; Fri, 28 Jan 2011 11:46:08 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PisOa-0007RF-Lu for ding@lists.math.uh.edu; Fri, 28 Jan 2011 11:46:08 -0600 Original-Received: from eagle.jhcloos.com ([207.210.242.212]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PisOY-00084X-Im for ding@gnus.org; Fri, 28 Jan 2011 18:46:02 +0100 Original-Received: by eagle.jhcloos.com (Postfix, from userid 10) id 2DE02400EC; Fri, 28 Jan 2011 17:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1296236753; bh=da3b3aUzDBskrh6hPTYJ+l8z9yXB/Pf4k7PQy+o7KWk=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=cDxXj8bf6snj/O8rIrvLDAYdt7w/YDm98KOVRhngNTAV4k2m8x8ypuNZ6XJFHUKoD 5/NnNN78BGFknus7oJDk0LwnyOKS6s6m9oVeRWHZeMP6bMY9lGjyoHPSsA+xCrVE2S z1Pfwov/oeX6JPZvdWTyoAj+Iaof89oboxTSkw/k= Original-Received: from carbon (localhost [127.0.0.1]) by carbon.jhcloos.org (Postfix) with ESMTP id DB7B1360029 for ; Fri, 28 Jan 2011 17:44:39 +0000 (UTC) In-Reply-To: <8739od3o40.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 27 Jan 2011 15:47:59 -0800") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Copyright: Copyright 2011 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 36 X-Hashcash: 1:30:110128:ding@gnus.org::6vG6ZMfqkQiuKP4y:000CsCW2 X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76098 Archived-At: >>>>> "LI" == Lars Ingebrigtsen 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 OpenPGP: 1024D/ED7DAEA6