• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cropped Italic Letters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cropped Italic Letters


  • Subject: Re: Cropped Italic Letters
  • From: Christopher Drum <email@hidden>
  • Date: Wed, 23 Feb 2005 09:44:56 -0800

I've noticed this problem both with italic letters and shadows. In fact, the shadow problem can be seen even just in the Dock. Put something in the dock whose name contains letters with long tails... p, q, y, et. al.

Notice how the tail of the letter is cut off and the shadow doesn't continue beyond some cutoff point, cropping the text into a rect that is clearly not tall enough to display the word in toto. Even words in the dock without letters with tails have their shadows cropped. It's easier to see this with a white desktop background, but the shadows are clearly cropped on the base of the letters.

In my screwing around with italics and shadows, I found I had to do what Rick Sharp has already suggested. Basically, I just finessed the rects until they displayed what I wanted to see.


I am currently working through Cocoa Programming For Mac OS X 2nd
Edition, and I've encountered a problem while working on an exercise
program. When I display an italic character in my view object, (nowhere
near the edges), it is drastically cropped on the righthand side. The
characters have a shadow as well, which is cropped slightly even when
the text is not italic. I've pasted some of my code here, if anyone
knows why this is happening, I would be very happy to hear.

I haven't worked with the italic style, but I can at least confirm the problems with shadows.


I filed a bug last December (<rdar://3910767>) entitled "Cocoa string drawing doesn't take shadow metrics in account".


------------------------------------------------------------------
Christopher Drum
http://homepage.mac.com/christopherdrum

Check out FileWrangler, my five-star rated (MacUpdate, VersionTracker) Cocoa app written in Objective-C for the batch renaming of files.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Receiving notification of New or Open document?
  • Next by Date: Re: Indexing/Directory Enumeration
  • Previous by thread: Re: Cropped Italic Letters
  • Next by thread: Re: Cropped Italic Letters
  • Index(es):
    • Date
    • Thread