| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| From what I've seen and spent hours searching for, you can only embed .FON font files(raster version) into Flash from Macintosh? Is this the case or am I just pulling my hair out trying to find a way to embed my work-related .FON file? The encoder is giving me the error about not finding the right weight. I have opened the file in a font editor and it renders correctly and gives me the appropriate weight to use(i.e., 400(Normal)). Any info would be greatly appreciated. |
|
#2
| |||
| |||
| Why not just embed from inside Flash? If the font is installed it will be an option in the font list inside of Flash, and the development tool gives you multiple simple methods for embedding. 1. Create a dynamic text box, click the "Embed fonts" button in the properties box. This allows you to embed as many characters of the currently selected font as you like. 2. Go to the Libraries pull-down menu, select "New Font" Select the font, the font size, bold/italic. Once created, right-click on the font symbol in the library, and go to Linkage. Tell it to export the font for actionscript (ideally in the first frame as well). The first method I mention allows you to embed only the characters you need, but for a specific text field. The second method allows you to embed the entire font for use in any text field. To use the second method: myTextField.setStyle('embedFonts',true); myTextField.setStyle('fontFamily','myEmbeddedFontN ame'); Its that easy. The embedded font will also be rendered properly if the text box is displaying HTML content, and you use the <font face="myEmbeddedFontName"> method (also <p style="font-family:myEmbeddedFontName;"> and any other method of setting font in HTML content) Hope this helps |
|
#3
| |||
| |||
| I'm using Flex for development and in what passes for a "Help system" in it there is one page that says .FON files are supported and another where it says they aren't. I've looked at CS3 also and placing a textfield in your application doesn't allow you to select .FON files for your font, only TTF ones. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.