From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#3174: "italic" is underlined now (NS?) Date: Fri, 12 Jun 2009 11:20:22 -0400 Message-ID: <2779F4B4-BEF7-4AF5-B22B-7D0568649EC6@gmail.com> References: <572FEF4D-AE1C-4805-AF88-AD9B048111C4@gmail.com> <87ws7i3kgr.fsf@cyd.mit.edu> <1AAB5F70-1F6C-4ED8-8B73-F75834BCBFFE@gmail.com> <46210028-DD72-4C1D-B95C-A23A8592A87E@gmail.com> Reply-To: David Reitter , 3174@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: multipart/signed; boundary=Apple-Mail-43-224850297; micalg=sha1; protocol="application/pkcs7-signature" X-Trace: ger.gmane.org 1244821153 20609 80.91.229.12 (12 Jun 2009 15:39:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2009 15:39:13 +0000 (UTC) Cc: 3174@emacsbugs.donarmstrong.com To: Adrian Robert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 12 17:39:09 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 1MF8p5-0006la-Ji for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 17:39:08 +0200 Original-Received: from localhost ([127.0.0.1]:39308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF8p3-0000mu-Os for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jun 2009 11:37:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MF8oy-0000mU-Iu for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 11:37:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MF8os-0000lR-0t for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 11:37:35 -0400 Original-Received: from [199.232.76.173] (port=58510 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF8or-0000lO-TT for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 11:37:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34219) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MF8oq-0006O5-HN for bug-gnu-emacs@gnu.org; Fri, 12 Jun 2009 11:37:29 -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 n5CFbJEF030526; Fri, 12 Jun 2009 08:37:20 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5CFP55Q028556; Fri, 12 Jun 2009 08:25:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: David Reitter Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Fri, 12 Jun 2009 15:25: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.124482003528345 (code B ref 3174); Fri, 12 Jun 2009 15:25:04 +0000 Original-Received: (at 3174) by emacsbugs.donarmstrong.com; 12 Jun 2009 15:20:35 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-qy0-f178.google.com (mail-qy0-f178.google.com [209.85.221.178]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5CFKUYa028200 for <3174@emacsbugs.donarmstrong.com>; Fri, 12 Jun 2009 08:20:32 -0700 Original-Received: by qyk8 with SMTP id 8so3021755qyk.19 for <3174@emacsbugs.donarmstrong.com>; Fri, 12 Jun 2009 08:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=bVjeni9mKYH/Uc4pRprDTwhOWbrEfkBxeCQC5QJQv60=; b=tI+MUxA0c145T+F9IfLWOKj30OIagFCc0Mmdf3QYxgeg57R4vJJcKbwYcD4q2rEtt2 6MD2qDq4Us/XW1jZ5lK96Qe2pmU9wYKfoYDSV1QcMBzxuCAhFVXwYZ5InUCOJZTxhGMe O2GgKtj9zgsGsLaKTfpL+1sYU6rNLVMdDKrfA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=DyPKbdf1G9Uquo1qYSjAyiAAdplqFKiJbKY6jrzr+AJDTzYr/L5Kg3Mv0DGkmGM4c6 GVJN/CpEhkmxFpPlLrHi0bRVO48Cr8fzuBksTOqfU3JQaz3wBjxRZPZfR6sAi0Av7ZLR 9GNFUJFmHXYjRo32bJnFgCPmTuPFd1MMJTTJ4= Original-Received: by 10.224.45.193 with SMTP id g1mr4460710qaf.247.1244820025218; Fri, 12 Jun 2009 08:20:25 -0700 (PDT) Original-Received: from SCARLETT.PSY.CMU.EDU (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id 8sm1016150qwj.44.2009.06.12.08.20.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Jun 2009 08:20:24 -0700 (PDT) In-Reply-To: <46210028-DD72-4C1D-B95C-A23A8592A87E@gmail.com> X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 12 Jun 2009 11:37:35 -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:28668 Archived-At: --Apple-Mail-43-224850297 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Jun 12, 2009, at 9:14 AM, Adrian Robert wrote: > > 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? Doesn't fix it. If I shortcut the "if" condition, it works, as you say. The reason is that the last part of the "and" fails: (gdb) print family $12 = (NSString *) 0xa07d0590 (gdb) print ns_has_attribute (fdesc, NSFontSlantTrait) $13 = 0 '\000' (gdb) print ns_attribute_value (fdesc, NSFontSlantTrait) $14 = (NSNumber *) 0x1644f70 Doesn't that mean that the font has a Slanted trait and shouldn't that be used rather than making a synthetic one? Apologies if I'm not making sense, I don't know the font code at all. - David --Apple-Mail-43-224850297 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFxDCCAn0w ggHmoAMCAQICED6shx13jEDrq0eL8FRq5ykwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MT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