• 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: Drawing antialiased text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing antialiased text


  • Subject: Re: Drawing antialiased text
  • From: Andrew Merenbach <email@hidden>
  • Date: Thu, 15 Aug 2002 10:47:06 -0700

I suppose "antialiased" isn't the exact word I'm looking for. When you
have a square button, and put some text in it, it looks a certain way by
default; if you select the text-only icon in Interface Builder, the text
gets a soft edge and a shadow. So, for example:

[demime 0.98b removed an attachment of type image/tiff which had a name of pastedGraphic.tiff]
The "H" is the title of the button, while the "1" is what I have drawn.
I would like the one to be a bit smaller, and to appear soft. I've used

[NSFont labelFontOfSize:[NSFont labelFontSize]]

in setting the string to draw, but the number still appears large, as in
the picture.

Take care,
Andrew Merenbach


On Thursday, August 15, 2002, at 10:37 AM, Brock Brandenberg wrote:

> Hi Andrew.
>
>> There's one last hurdle I need to overcome in my periodic table of the
>> elements before it's fit to release: I need to finish tweaking the
>> interface. The biggest problem is that I have drawn the atomic number
>> of an element in addition to the button's title (which is the element's
>> symbol), but it appears large and black, even though I have designated
>> label-sized text, and would like it to be antialiased like the text
>> on a
>> text-only button--otherwise it draws attention away from the atomic
>> symbol, making the chart hard to read. I received some help before
>> about drawing an additional title, but I can't seem to make it look
>> good. Any suggestions?
>
> It's hard to grasp what your current drawing problem may be since any
> Cocoa
> text drawing will be anti-aliased by default. You have to go out of
> your way
> to make it not anti-aliased.
>
> Send me a screen snapshot of what something looks like now, and I'll
> try and
> decipher what may be happening.
>
> Bye.
>
> Brock Brandenberg
>
> P.S. Don't cross post :) We do watch both lists.
>
> ----- industrial design @ www.bergdesign.com ------
>
>
>
--
Andrew Merenbach
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Drawing antialiased text
      • From: Brock Brandenberg <email@hidden>
  • Prev by Date: Re: .pax?
  • Next by Date: How to callback into a Obj-C object from C?
  • Previous by thread: Drawing antialiased text
  • Next by thread: Re: Drawing antialiased text
  • Index(es):
    • Date
    • Thread