Jump to content
Search Community

System fonts disappear [SOLVED]

batphobic test
Moderator Tag

Recommended Posts

I'm using the user's system fonts, so I can't embed fonts.

 

The user creates a line of text in my app, chooses the font they want (from a list of their system fonts) and the text gets placed on the interface. Then I need them to be able to rotate that text. With CS4 we can use rotationZ to do this rather than just rotation. How do I modify transformmanager to allow rotationZ?

 

Many thanks in advance.

Link to comment
Share on other sites

If you want to search/replace "rotation" with "rotationZ" in the source, you can but there are other issues with using rotationZ like the fact that it requires more processing. You could try creating a BitmapData and rotating that instead of the actual TextField (that's essentially what rotationZ does - it creates a bitmap and runs it through matrix transformations to render it in 3D).

 

Just a few ideas.

 

Oh, and I'm pretty sure that if you publish to Flash Player 10, its new text engine will let you use system fonts and rotate them (although I haven't tested this personally myself yet).

Link to comment
Share on other sites

thanks for the very fast response.

 

However I tried copy/replace with rotation/rotationZ and it didn't work. It appears you are rotating the objects using rotate() and radians rather than setting the .rotation property.

 

I'm not sure I want to tackle redoing the radians and rotate() method.

Link to comment
Share on other sites

Yes indeed - sorry, my brain was a bit foggy this morning. There are bugs in Flash/Flex that won't allow straight editing of the rotation property - that's why I had to resort to doing rotate() on the transform.matrix. It should be possible to do something similar with the matrix3D, but again, performance wouldn't be nearly as good and it'd certainly be a hassle.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...