Thursday, February 24, 2005, 3:52:08 AM, l'eau wrote: l> Is there a property in director that returns the width of a text character l> in pixel independently from the fonttype and fontsize? l> Depending on the monitor resolution a text char has a different size.
This may be stating the obvious, so forgive me if I've got the wrong idea but it sounds like you are mixing the concept of "size on the monitor screen" with "size in pixels". It's worthing noting that the while the monitor resolution does affect the "physical" size of the font as displayed on the monitor, it does not change how many pixels wide (or high) your letters will be. Changing the monitor resolution simply displays smaller pixels (and more of them), or larger pixels (and less of them). Therefore values returned by pixel based commands like charPosToLoc(), and the size / line height of the text will be the same, even though your font looks larger on a lower-res monitor. This is the same as if you had a 200x200 pixel image on stage. If you change the monitor resolution, the image might appear wider and taller, but it is still 200 x 200 pixels in size. It is just that the pixels are larger, and there are fewer of them available in total on your monitor display. - Ben _________________ [EMAIL PROTECTED] www.robotduck.com [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
