PDA

View Full Version : Does this really work? about Fonts embedded


Flash Gordon
04-17-2005, 02:38 AM
This is from here:
http://actionscripts.org/forums/showthread.php3?t=44432&page=1&highlight=mask+component
How to embed fonts into any V2 Component that can accept a font, such as the TextArea, TextInput, ProgressBar, etc.:

1) Add each font you want to embed to the Library via clicking on the Library menu - upper right corner of the Library panel and select New Font ...

Pick the font from the dropdown list. Give it a friendly name in the 'Name' field. If ... you are using pixel fonts, BE SURE to set the size to 8, and DO NOT check any of the other boxes.

2) Once you see the font in the Library, right click the font and select Linkage ...
Give the font an Identifier and check both 'Export for ActionScript' and 'Export in first frame'.

3) In your Actions layer ... in an appropriate location/frame, either of the following will work, depending on your situation:

_global.styles.TextArea.setStyle("embedFonts", true);
more general: _global.styles.SomeV2Component.setStyle("embedFonts", true);
OR

TextAreaInstanceName.setStyle(("embedFonts", true).
more general: SomeV2ComponentInstanceName.setStyle("embedFonts", true).


So does this really work??? I have been working with this for quite sometime and can't get it. Any help out there?
Link to sample zipped fla file (http://www.modernmusicians.com/help/myFonts.zip)

Thanks guys.

alex.knights
05-08-2005, 05:20 PM
Does anyone else have an issue with the pixel font being antialiased and blurry?

Flash Gordon
05-08-2005, 06:03 PM
there is a tutorial on pixel fonts. I kind of gave up on them since they only display at 8 px I want an 12 px one. :(

Eakan
05-09-2005, 09:30 PM
if ur pixel fonts are blurry make sure the coordinates are set to integers, not floating point numbers (ie: 1.2 or 3.7)

alex.knights
05-09-2005, 09:40 PM
They are set to integers.