Flash text w/ HTML, font issue
- Started
- Last post
- 9 Responses
- phirschybar
Hello all.. hope it was a good weekend!
I made a dynamic textbox in Flash that pulls its text from a textfile. I've done this a million times and had fonts embedded... but I am now having an issue with getting the font to BOLD or ITALICIZE. I am using a miniml font (Standard - Normal). Is there a way to tell flash to use the bold version when it encounters a tag in the HTML???
Many thanks
- UndoUndo0
make sure you embedd all the bold and ital chars else you will have problems. using the or tags should then do the trick
- unfittoprint0
#1 miniml fons are not typical font families. they don't come with bold or italics. standard 07_65 is not the bold version of standard 07_55, so using <strong> and >i > tags will not help.
#2 for that you'll have to use html's < font > tag and assign a different font [in this case standard 07_65].
#3 make a font symbol for each font you want to use.
#4 due to a stupid bug, you'll have to click the [non-existant] bold version to be 'imported', for your textfield to use multiple fonts. don't ask me why.
- phirschybar0
Thanks unfit.. couple quick questions:
#1 Got it.
#2 So, if I have the <strong> tags replaced with < font style="standard_07_55" > or whatever, that will work? Or do I need to point to the font symbol's name? Can you give me an example of my < font > tag to grab the appropriate font...
#3 To make a font symbol, can I just made a symbol with linkage to be imported on the first frame and just include an empty dynamic text field with embedded characters in that symbol?
#4 Not sure exactly what you mean here... what do you mean by "click the bold version".. like should I click the BOLD button on the BOLD miniml font even though its not bold (or something)?
THANKS!!!
- Anarchitect0
#2 < font style="fontsymbolname" >
#3 that's exaclty it, first make tthfont symbol, name it, and then export using the library linkage identifier.
#4 when you're making the font symbol, you'll have to give it a name, select the desired font AND tell flash to include the italic/bold types for that font.
click both,
- phirschybar0
GREAT!
- phirschybar0
hmmm.. thi doesn't seem to be working (yet)
I have the following:
- Dynamic text field on stage accessing variable testText.
- This text field is currently using arial and has no embedded characters
- A symbol in library with a dynamic text field (standard_07_55) being exported with "standard1" linkage identifier.
- HTML with < font style="standard1" > wrapping around text < /font>
- Flash is still displaying ARIAL when it is published. Am I missing anything?Thoughts?
- phirschybar0
BTW, I am using MX not MX 2004, would this make any difference?
- phirschybar0
* bump - man I gotta bump this.. I really need help.. have been all over actionscript.org and newstoday.. I cant get multiple font faces to work in one textfield.. help...
- phirschybar0
ok.. found the solution.. I was using < font style="" > instead of < font face="" >