From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: emacs chooses wrong bold font, again Date: Fri, 20 Jun 2008 17:10:48 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1213949478 20969 80.91.229.12 (20 Jun 2008 08:11:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2008 08:11:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 20 10:12:03 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K9biz-0004SB-D7 for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 10:12:01 +0200 Original-Received: from localhost ([127.0.0.1]:53832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9biA-0001gm-4Q for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2008 04:11:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K9bi3-0001gS-Jx for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:11:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K9bi0-0001fn-Ln for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:11:03 -0400 Original-Received: from [199.232.76.173] (port=46853 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K9bi0-0001fk-It for emacs-devel@gnu.org; Fri, 20 Jun 2008 04:11:00 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:46232) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K9bhu-0002KN-K2; Fri, 20 Jun 2008 04:10:55 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m5K8BeI2023342; Fri, 20 Jun 2008 17:11:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m5K8AmGg008778; Fri, 20 Jun 2008 17:10:48 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m5K8AmAJ021552; Fri, 20 Jun 2008 17:10:48 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K9bho-00056S-5u; Fri, 20 Jun 2008 17:10:48 +0900 In-reply-to: (message from Glenn Morris on Fri, 20 Jun 2008 03:16:15 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99508 Archived-At: In article , Glenn Morris writes: > The bold font is correct again now (Emacs from 2 days ago gets it wrong). Strange. I didn't change any code related to font-selection in these two days. > I noticed that Emacs 22 and current CVS choose slightly different > fonts for fixed and variable pitch. Fixed looks smaller and a bit > uglier now. Variable just looks a bit different. > variable-pitch > CVS: > -adobe-helvetica-medium-r-normal--14-101-100-100-p-78-iso8859-1 > 22: > -Adobe-Helvetica-Medium-R-Normal--14-100-100-100-P-76-ISO8859-1 > fixed-pitch > CVS: > -urw-nimbus mono l-regular-r-normal--14-101-100-100-p-80-iso8859-1 > 22: > -Adobe-Courier-Medium-R-Normal--14-100-100-100-M-90-ISO8859-1 > This is with: > Emacs.font: -misc-fixed-medium-r-normal-*-14-*-100-100-*-*-iso8859-1 In my environment, with the above default font, CVS emacs uses exactly the same fonts as Emacs 22. > Also, I have been specifying an italic font in ~/.emacs using > (face-spec-set 'italic > '((t (:slant italic :underline nil :family "helvetica")))) > In CVS this now looks poor compared to in 22. Again they choose > different fonts: > CVS: > -urw-nimbus sans l-regular-i-normal--14-101-100-100-p-77-iso8859-1 > 22: > -Adobe-Helvetica-Medium-O-Normal--14-100-100-100-P-78-ISO8859-1 I tried that too, and get the same result as Emacs 22. Please tell me your system (sorry if I asked it before). > font log: [...] > sort-by: -misc-fixed-bold-r-normal--14-*-100-100-c-70-iso8859-1 > x:-misc-fixed-bold-r-normal--14-*-75-75-c-70-iso8859-1 > open: -misc-fixed-bold-r-normal--14-*-75-75-c-70-iso8859-1 > x:-misc-fixed-bold-r-normal--14-130-75-75-c-70-iso8859-1 Hmmm, the PIXELSIZE field is correct now. Please try this: (1) Start Emacs as usual. (2) Load the attached file "temp.el". (3) M-x temp RET And show me the result of *Help* buffer. --- Kenichi Handa handa@ni.aist.go.jp ----temp.el------------------------------------------------------------------ (defun temp () (interactive) (let ((buf (get-buffer-create "temp"))) (set-buffer buf) (erase-buffer) (font-lock-mode -1) (insert (propertize "italic" 'face 'italic)) (insert "\n") (insert (propertize "fixed-pitch" 'face 'fixed-pitch)) (insert "\n") (insert (propertize "variable-pitch" 'face 'variable-pitch)) (insert "\n") (switch-to-buffer buf) (setq font-log nil) (sit-for 0) (font-show-log)))