all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adrian Robert <adrian.b.robert@gmail.com>
To: David Reitter <david.reitter@gmail.com>
Cc: 3174@emacsbugs.donarmstrong.com
Subject: bug#3174: "italic" is underlined now (NS?)
Date: Fri, 12 Jun 2009 16:14:30 +0300	[thread overview]
Message-ID: <46210028-DD72-4C1D-B95C-A23A8592A87E@gmail.com> (raw)
In-Reply-To: <DB70E864-036E-470A-8B61-ED31CD0186C8@gmail.com>


> 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:
>     #<font-spec ns nil Monaco nil iso10646-1 nil nil nil nil nil  
> 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:
>     #<font-entity ns apple Monaco nil iso10646-1 medium normal  
> normal 0 nil 100 0 ((:name . "Monaco"))>

Should now have:

created font_entity:
     #<font-entity ns apple Monaco synthItal iso10646-1 medium italic  
normal 0 nil 0 0 ((:name . "Monaco"))>
     Returning 2 entities.







  reply	other threads:[~2009-06-12 13:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11  3:51 "italic" is underlined now (NS?) David Reitter
     [not found] ` <87ws7i3kgr.fsf@cyd.mit.edu>
2009-06-12 12:15   ` bug#3174: " Adrian Robert
2009-06-12 12:49     ` David Reitter
2009-06-12 13:14       ` Adrian Robert [this message]
2009-06-12 15:20         ` David Reitter
2009-06-13 11:34           ` Adrian Robert
2009-06-14 14:37             ` David Reitter
2009-06-14 15:53               ` Adrian Robert
2009-06-14 17:37                 ` David Reitter

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=46210028-DD72-4C1D-B95C-A23A8592A87E@gmail.com \
    --to=adrian.b.robert@gmail.com \
    --cc=3174@emacsbugs.donarmstrong.com \
    --cc=david.reitter@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.