all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Adrian Robert <adrian.b.robert@gmail.com>
Cc: 3174@emacsbugs.donarmstrong.com
Subject: bug#3174: "italic" is underlined now (NS?)
Date: Sun, 14 Jun 2009 13:37:28 -0400	[thread overview]
Message-ID: <4AAF9D78-E0B3-48C2-BCB7-2876DF766448@gmail.com> (raw)
In-Reply-To: <69986D89-E7F3-48BA-AF9E-3D8A37105834@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1978 bytes --]

On Jun 14, 2009, at 11:53 AM, Adrian Robert wrote:
>
> OK, but the behavior makes the way I set up ns_attribute_value()  
> pretty much useless, so does the below work on your system?  (Sorry  
> I have no Leopard to test.)

OK, this seems to work for Monaco.

However...

I identified (using Font Book) a font (Garamond) that seems to have  
its own Italic variant.

I then did M-x customize-face RET default RET and switched to Garamond  
14pt.

Looking at some italic text (\emph{...} in a latex-mode buffer), C-u C- 
x = gives me:

           display: by this font (glyph code)
     nil:-apple-Garamond-medium-italic-normal-synthItal-14-*-*-*-p-0- 
iso10646-1 (#x57)
There are text properties here:
   charset              iso-8859-1
   face                 (italic)
   fontified            t


Why is this synthItal?
Shouldn't it use the provided font?

Some debugging reveals that it can't see the italics because your  
[-0.25;0.25] bracket is too strict (that's +-7.5 degrees - a  
reasonable minimum).

     #<font-entity ns apple Garamond nil iso10646-1 medium italic  
normal 0 nil 0 0 ((:name))>
2009-06-14 13:31:42.779 Aquamacs[40351:813] no ital found - 0.06944444
created font_entity:
     #<font-entity ns apple Garamond nil iso10646-1 medium italic  
normal 0 nil 0 0 ((:name))>
2009-06-14 13:31:42.779 Aquamacs[40351:813] no ital found - 0.06944444
created font_entity:
     #<font-entity ns apple Garamond nil iso10646-1 medium italic  
normal 0 nil 0 0 ((:name))>
2009-06-14 13:31:42.780 Aquamacs[40351:813] no ital found - 0.06944444

So I'm changing this to

static BOOL
ns_has_attribute (NSFontDescriptor *fdesc, NSString *trait)
{
     float v = ns_attribute_fvalue (fdesc, trait);
     return v < -0.05 || v > 0.05;
}

How I get

  nil:-apple-Garamond-medium-italic-normal-*-14-*-*-*-p-0-iso10646-1  
(#x4C)


and Garamond italic looks noticeably better.  The synthetic italic  
slant was quite a bit too slanted.

Hope we've got it nailed now.

- David

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

      reply	other threads:[~2009-06-14 17:37 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
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 [this message]

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=4AAF9D78-E0B3-48C2-BCB7-2876DF766448@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=3174@emacsbugs.donarmstrong.com \
    --cc=adrian.b.robert@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.