Reputation: 31
I have a pixel font from www.fontsforflash.com. I have embedded it using flex then loaded the swf in flash CS4 to make it available. But its very blurry and I can find a way to turn off anti-aliasing in as3.
Its the right size and placed with whole numbers. The reason I have embedded this method is because I don't want to load an entire font library.
Is there a way I can turn off anti-aliasing or is there a better way to embed my font?
Thanks
Upvotes: 3
Views: 1091
Reputation: 17217
when you embed your font make sure you select the "bitmap text" check box in the Font Symbol Properties panel (in Flash) to insure the font has no anti-alias.
i don't recall if CS4 had this option, but in Flash CS5 you can select View > Snapping > Snap To Pixels so that all of your placed assets will have rounded x and y coordinates. it will do the same thing as the code posted by PatrickS.
Upvotes: 1
Reputation: 9572
If it's a pixel font , don't forget that the x & y values must be integers. You'll probably need to do something like this.
textfield.x = Math.round( whateverX );
textfield.y = Math.round( whateverY );
and probably the same thing for the parent!
Upvotes: 0