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

Re: fast text


  • Subject: Re: fast text
  • From: "John C. Randolph" <email@hidden>
  • Date: Mon, 25 Nov 2002 14:58:18 -0800

In that case, make an NSImage big enough to contain the text, lockfocus on the image and draw the text into it, and then composite that image into the view whenever you need to. This is about as fast as it can get within Quartz2D. If you need it to go faster than that, render the text into a GL texture, and let the hardware acceleration deal with it.

-jcr

On Monday, November 25, 2002, at 02:14 PM, Alexander White wrote:

This is the same text frequently ~20 fps
AW

On Monday, November 25, 2002, at 02:02 PM, John C. Randolph wrote:


On Monday, November 25, 2002, at 12:50 PM, Alexander White wrote:

I am writing a cocoa program that requires text to be rendered quickly to a view. The cocoa text rendering calls are too slow. The quartz text calls do not support (I think) complicated text handling like multiple fonts/colors on one string of text and the antialiasing on the postscript fonts is soft/blurry when compared to the cocoa antialiasing. What is the fastest way to draw text to a CGContext? Is it using the ATSUI toolbox?

Is this rapidly-changing text, or do you need to render the same text frequently?

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

  • Prev by Date: Re: Weird coder problem
  • Next by Date: SOLVED:Re: Weird coder problem
  • Previous by thread: Re: fast text
  • Next by thread: Re: fast text
  • Index(es):
    • Date
    • Thread