[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3174: "italic" is underlined now (NS?)
From: |
David Reitter |
Subject: |
bug#3174: "italic" is underlined now (NS?) |
Date: |
Fri, 12 Jun 2009 11:20:22 -0400 |
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
smime.p7s
Description: S/MIME cryptographic signature