Mailing Lists: Apple Mailing Lists

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

Questions and problems with "Image with String"



Hi folks --

I've been trying to do some graphic layering with the "Image with String" patch, and I'm having a heck of a time....

* If you want black text on transparent, and you hook up image with string to billboard and set the color of the billboard to black, the black background hides the text completely.  Any way around that to see what I'm doing?  Should the Image With String patch have color/background-color controls on it?

* What is "Glyph Size" on Image With String doing?  Its default  value of 0.1 is kind of blocky ... as if it's a very small bitmap scaled up; smaller values are way too blocky; larger values produce a better display, but if it gets too large, then it starts looking weird.  What's the optimum size for this to have it rendered at whatever size is needed for the view size that it is being rendered into?

* What is image width in the Image WithString patch controlling?  It seems that when image width is zero, then the whole text is fit in one line to one width unit.  When it's non-zero, then there's some interplay between the image width and the glyph size.  But I can't figure out what the relationship is supposed to be....


* Now switching over to fixed dimension in pixels to try that variation... If the image dimensions are 0x0, then specifying a font size seems to make NO sense -- it's like above, where it just scales whatever font size you specified up or down, so just about all sizes look bad unless you happened to have picked the right font size.  Again, how to specify the size that will make the font look right in whatever size output image it's rendered?  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?


It really seems like the whole Image With String thing is not documented enough, and a lot of trial and error has not gotten me far.  I guess what I'm hoping for is some basic recipes for simple operations like:

- render black text and have it be visible in the viewer, not black-on-black
- smoothly render a string on a single line of text within the specified pixel width, scaling text size to fit.
- smoothly render a string onto one or more lines within the specified pixel width and height, scaling text size to fit
- smoothly render a string of a specific font size to fit within a specified pixel width and height

Thanks,

Dan


 _______________________________________________
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



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.