very different width for space character when not using screen fonts

  • Hi everyone,

    I've a small mystery on my hands. When displaying text in the Italic
    Garamond font via an NSLayoutManager that has screen fonts disabled
    the horizontal space allocated for a normal space (good old 0x20) is
    too large.

    Here's a screenshot with screen fonts are enabled: [layoutManager
    setUsesScreenFonts:YES]And the exact same text when screen fonts are disabled:
    [layoutManager setUsesScreenFonts:NO]Hopefully the images come through and you can see the space grows to
    nearly double the width.

    I don't expect this is something I'll be able to work around, but
    even if I just wanted to report it to Apple, is this a problem with
    the font itself or the layout system? Any thoughts?

    ~Martin
  • On Dec 2, 2008, at 6:06 AM, Martin Wierschin wrote:

    > I don't expect this is something I'll be able to work around, but
    > even if I just wanted to report it to Apple, is this a problem with
    > the font itself or the layout system? Any thoughts?

    Most likely this is a font issue, but go ahead and file a bug and
    we'll track it down.

    Douglas Davidson
  • On Dec 2, 2008, at 9:06 AM, Martin Wierschin wrote:

    > Hi everyone,
    >
    > I've a small mystery on my hands. When displaying text in the Italic
    > Garamond font via an NSLayoutManager that has screen fonts disabled
    > the horizontal space allocated for a normal space (good old 0x20) is
    > too large.
    >

    I found a similar issue that doesn't involve screen fonts but rather
    non-breaking spaces. In Hoefler Text, they are about three times as
    wide as a normal space. It's the only font I've found with that
    behavior. I filed a bug (4633146), thinking it was a problem with the
    font, but the bug was closed without action; I can't remember exactly
    why, but they said it was not an issue with the font.

    Ross Carter