8.21. Creating Text That Can Be Rotated
Problem
You want to make sure that text will continue to display even when it is rotated.
Solution
Use embedded fonts.
Discussion
Unless you specifically use an embedded font, text fields use device
fonts. For most situations, this is perfectly workable. However, in
situations in which you want to animate a text field (or its parent
movie clip) by changing its _rotation
property,
you must use embedded fonts. Device fonts will disappear in a rotated
text field.
See Also
Recipe 8.20 explains how to embed fonts.
Get Actionscript Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.