| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
#1 |
|
Member
Join Date: Jun 2007
Location: Norton, MA
Posts: 57
|
Hi all,
I have been tussling with this all morning. Any suggestions? Writing all actionscript in Flex 3 editor. I am embedding fonts in an SWF then downloading the swf and registering fonts at runtime. Its working fine with different typefaces, but I cannot get access to a regular and bold version of the same font. Below I am embedding the fonts. I have also tried to use "FontFamily" instead of "FontName" option, with no luck. ActionScript Code:
once the SWF has downloaded, I pull the fonts in like this (this is part of a loader): ActionScript Code:
I have been unable to get access to both normal and bold weights of DIN. Whichever weight is registered last becomes the "regular" weight of the type, make sense? I can't seem to find much documentation on this, so any help would be greatly appreciated!! |
|
|
|
|
|
#2 |
|
Member
Join Date: Jun 2007
Location: Norton, MA
Posts: 57
|
ok, I swapped out FontStyle with FontWeight, but this has led to a more challenging problem:
the following code pulls an error saying the bold font cannot be found! Is there a different technique for embedding opentype fonts? ActionScript Code:
I get the same issue whether I use the FontFamily or FontName directive |
|
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2007
Location: Norton, MA
Posts: 57
|
the following works: Opentype fonts with multiple weights have to be embedded by name as a system font -- I could not load it from the font file.
ActionScript Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic Text and Fonts | ksb43 | ActionScript 2.0 | 13 | 11-17-2009 04:04 AM |
| to chat component how to add styles, that italic, bold regular | advika | Flash Media Server | 0 | 05-26-2006 11:18 AM |
| Embedding fonts in a dynamic text box & formatting with css | zymosan | ActionScript 2.0 | 1 | 04-19-2006 08:35 PM |