Thanks a lot for your reply, Jim. In the end, we concluded that:
(1) You can't have a combination of embedded fonts and device fonts in one textfield. We decided to search the text for phonemic characters, and if it had any, go ahead and do the textfield.embedFonts=true as well as loading in the SWF containing the font. (See below.) (2) We need to embed DejaVu Sans «http://dejavu.sourceforge.net» (that was a great tip, thanks!) (3) This method for embedding unicode ranges of normal, bold, oblique and bold-oblique versions of the font works really well for our purposes, as we really only needed a very small subset of a unicode font: «http://www.kirupa.com/forum/showthread.php?t=257913» Your help was very much appreciated, thank you! On Thu, Feb 11, 2010 at 10:34 PM, Jim Hayes <[email protected]> wrote: > Ah, I've just been there with IPA characters. > > If you are using htmltext it's do able, though in the end I embedded the font > (deja-vu in my case, it's open source) since I also needed to set plain text. > > The trick is to unicode escape the character, replace it with that escaped > code and set a style on it's replacement, where that style specifies the > embedded font. > > so if you know your character code for your undertie , lets say it's 1234, > try something like this : > > var unicodeString:String = "&#" + 1234 + ";"; > str = str.replace(String.fromCharCode(1234),"<span class='ipa'>" + > unicodeString + "</span>"); > > then specify the style for your text : > _textStyle = new StyleSheet(); > var ipaStyle:Object = new Object(); > ipaStyle.fontFamily = "YourEmbeddedFont"; > _textStyle.setStyle(".ipa", ipaStyle); > yourText.styleSheet = _textStyle; > > Sorry if that's a bit scrappy, hopefully it will give you an idea of where > you might head. > I was using flex, in fact, but I think this still applies to flash textfields. > > > -----Original Message----- > From: [email protected] on behalf of > [email protected] > Sent: Thu 2/11/2010 6:01 AM > To: Flash Coders List > Subject: Re: [Flashcoders] Combining embedded and device fonts in one > textfield > > Thanks for that link, Ktu. I didn't know you could specify Unicode > ranges to embed - very handy. > > Unfortunately, the problem still remains of having to combine an > embedded font and a device font in the same textfield. As Lee Brimelow > demonstrates near the end of the tutorial, the lowercase 'u' didn't > display because only uppercase glyphs were embedded. It seems like if > I choose to embed only the undertie character, my textfield will only > be capable of displaying ... the undertie character! > > It seems like this is the conundrum: > > 1) I need to embed the undertie character, as Arial Unicode MS is not > guaranteed to be found on all machines. > > 2) That means that any textfield which would have an undertie in it, > would have to have embedFonts = true; > > 3) Any textfield which has embedFonts = true can only display > characters included in the embedded font. Which, referring back to > (1), would just be an undertie. > > 4) This means that if I want to have an undertie, I'd have to embed > the undertie AND every single other glyph which might be used in that > textfield. Uppercase, lowercase, punctuation, numbers, etc. Further, > I'd have to embed separate versions for each of bold, italic, and > bold-italic. > > All this for an undertie!! > > On Thu, Feb 11, 2010 at 4:18 PM, Ktu <[email protected]> wrote: >> If you have Flash CS4 or Flex, you could embed just that one character from >> that font using the [Embed] syntax. Check out this tutorial >> http://gotoandlearn.com/play?id=102 >> >> Ktu >> >> On Wed, Feb 10, 2010 at 11:08 PM, [email protected] < >> [email protected]> wrote: >> >>> I have paragraphs of text which includes phonemic symbols: pretty much >>> any character found here should be included: >>> http://www.e-lang.co.uk/mackichan/call/pron/type.html >>> >>> I thought I was home and hosed, as Lucida Sans Unicode / Lucida >>> Grande, which seems pretty standard, covers all that. >>> >>> The problem came when I found out that I also have to be able to >>> display the undertie character: >>> http://en.wikipedia.org/wiki/Tie_(typography)<http://en.wikipedia.org/wiki/Tie_%28typography%29>(HTML >>> code ?) >>> >>> It seems that the only font on Windows that covers the undertie is >>> Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a >>> standard font. >>> >>> I don't want to have to embed Arial Unicode MS because that would >>> really add to my file sizes, as well as restricting my ability to do >>> things like textfield.htmlText = "<b>bold</b> text". It seems like >>> such overkill for ONE SINGLE GLYPH. >>> >>> Would anyone be able to suggest any alternatives? ALL I WANT IS AN >>> UNDERTIE ... *sob* >>> _______________________________________________ >>> Flashcoders mailing list >>> [email protected] >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ______________________________________________________________________ > This communication is from Primal Pictures Ltd., a company registered in > England and Wales with registration No. 02622298 and registered office: 4th > Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. > VAT registration No. 648874577. > > This e-mail is confidential and may be privileged. It may be read, copied and > used only by the intended recipient. If you have received it in error, please > contact the sender immediately by return e-mail or by telephoning +44(0)20 > 7637 1010. Please then delete the e-mail and do not disclose its contents to > any person. > This email has been scanned for Primal Pictures by the MessageLabs Email > Security System. > ______________________________________________________________________ > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

