Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions and problems with "Image with String"





On May 19, 2005, at 4:57 PM, Pierre-Olivier Latour wrote:

Often what I want is to specify a particular width or width/ height and have the text scaled to fit that available space. How can I do that without making guesses in glyph size and font size that can result in sub-standard font rendering?


Just set Image Width & Height to the dimensions you wish to display the text in, set the Glyph Size to the character size and connect Display Witdh to the Width input of the Billboard:



Thanks for your suggestions. I'm still finding that the glyph size is a magic number, and I don't seem to have a way to specify "fit in rectangle" without getting the non-smooth text. Take for instance the attached sample... I have a simple subpatch with an ImageWithString --> Billboard rendering into a Render In Image of 512 x 70 pixels. If I hook up Display Width to the billboard's Width, the text ends up not scaling to the right size to fit that 512x70 box, but depending only on the Glyph size -- the arbitrary text is never the right size (whatever will fit in the 512x70 box).


If I disconnect the display width and set the subpatch's width to "2", then at least it is the entire 512 pixels across, though then I have the problem with the badly antialiased text. Do you see the problem?

Dan

Attachment: DanText.qtz
Description: application/quartzcomposer

Attachment: DanText2.qtz
Description: application/quartzcomposer





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Questions and problems with "Image with String" (From: Dan Wood - Discussion Lists <email@hidden>)
 >Re: Questions and problems with "Image with String" (From: Pierre-Olivier Latour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.