From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.bugs Subject: bug#3174: "italic" is underlined now (NS?) Date: Fri, 12 Jun 2009 16:14:30 +0300 Message-ID: <46210028-DD72-4C1D-B95C-A23A8592A87E@gmail.com> References: <572FEF4D-AE1C-4805-AF88-AD9B048111C4@gmail.com> <87ws7i3kgr.fsf@cyd.mit.edu> <1AAB5F70-1F6C-4ED8-8B73-F75834BCBFFE@gmail.com> Reply-To: Adrian Robert , 3174@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244813890 27910 80.91.229.12 (12 Jun 2009 13:38:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2009 13:38:10 +0000 (UTC) Cc: 3174@emacsbugs.donarmstrong.com To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 12 15:38:07 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MF6xK-0003Ms-S9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 15:38:07 +0200 Original-Received: from localhost ([127.0.0.1]:44689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF6xK-0004uK-BW for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 09:38:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MF6wh-0004d9-Ex for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 09:37:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MF6wc-0004ZU-Nr for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 09:37:27 -0400 Original-Received: from [199.232.76.173] (port=32775 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF6wc-0004Z7-FD for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 09:37:22 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37025) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MF6wb-000579-Qs for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 09:37:22 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5CDbJej012160; Fri, 12 Jun 2009 06:37:20 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5CDK4PY009340; Fri, 12 Jun 2009 06:20:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Adrian Robert Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Fri, 12 Jun 2009 13:20:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3174 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 3174-submit@emacsbugs.donarmstrong.com id=B3174.12448124848587 (code B ref 3174); Fri, 12 Jun 2009 13:20:04 +0000 Original-Received: (at 3174) by emacsbugs.donarmstrong.com; 12 Jun 2009 13:14:44 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5CDEdH9008582 for <3174@emacsbugs.donarmstrong.com>; Fri, 12 Jun 2009 06:14:41 -0700 Original-Received: by ewy26 with SMTP id 26so2902100ewy.1 for <3174@emacsbugs.donarmstrong.com>; Fri, 12 Jun 2009 06:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=aSe3oKeOYMO3NB9j81vjFExPDu+Wm8Tf52IucTyF5TQ=; b=sJMEKSf1f811t5nPFdFknM0tuVhfa8TGe1D9XlZlQlBG4Uyyb4tsGQxIuiYLmZEk8o IcZjRlxY0+iM1zLTmjeIWKRcfggNS55+b6nQwzTfFbDT5HUAxXpfmDp1mHt0USNDGJgu 0evDDwHdxPKnbvdcXi4aQ4HjXGTeIkHNHSlOo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=iiFaVOnKqOXpgDHAxIRtjOoLf4Vm+CL5zSx72sLOMudBBq/xrNByQgW0LhzzbODZ9Y yIgTVx3dENzn3lDtyeySszSe/TSYdrvyD5B7ImxeLpqIKzHjE0CopBayCxZZdqrXrApJ 8J3lkgXLQrxndjc0i+eM3wF7tcIJOZ2FPXZdw= Original-Received: by 10.210.59.14 with SMTP id h14mr831085eba.38.1244812474051; Fri, 12 Jun 2009 06:14:34 -0700 (PDT) Original-Received: from ?192.168.20.5? (xdsl-83-150-81-157.nebulazone.fi [83.150.81.157]) by mx.google.com with ESMTPS id 7sm1184911eyb.25.2009.06.12.06.14.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Jun 2009 06:14:33 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 12 Jun 2009 09:37:26 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28667 Archived-At: > This is -Q, then M-x customize-face RET italic RET: OK, no synthItal font is being returned from list() for Monaco, and I believe this causes ital face to be "rewritten" to use underline as the next available emphasis method if no italic is available. The problem is the if () at nsfont.m: 505 is not firing. Can you try changing the line just above where family is set to family = ns_get_family (font_spec); If that does NOT fix it (see below for what you should see in the console output) then could you experiment to find out what other condition is causing the if () not to fire? If it DOES fix it it must be a Leopard difference. I don't like calling ns_get_family() twice so I'll look into rewriting some function signatures to avoid this. > ~/em23$ nextstep/Emacs.app/Contents/MacOS/Emacs -Q > nsfont: list for fontspec: > # nil nil ((:name . "Monaco"))> > 2009-06-12 08:43:22.617 Emacs[2654:10b] Request covering families > for script: '' > 2009-06-12 08:43:22.676 Emacs[2654:10b] returning 287 families > 2009-06-12 08:43:22.677 Emacs[2654:10b] Got desc NSCTFontDescriptor > <0x16446a0> = { > NSFontFamilyAttribute = Monaco; > } and found 1 matching fonts from it: > created font_entity: > # normal 0 nil 100 0 ((:name . "Monaco"))> Should now have: created font_entity: # Returning 2 entities.