FROM : John C. Randolph
DATE : Mon Nov 25 23:58:18 2002
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_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Mon Nov 25 23:58:18 2002
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_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Alexander White | Nov 25, 21:50 | |
| John C. Randolph | Nov 25, 23:02 | |
| Alexander White | Nov 25, 23:36 | |
| John C. Randolph | Nov 25, 23:58 | |
| Alexander White | Nov 26, 00:27 | |
| John C. Randolph | Nov 26, 00:37 | |
| Vince DeMarco | Nov 26, 01:03 |






Cocoa mail archive

