开发者

How do I embed accented Latin fonts (like French) into a Dynamic Text Field in Flash CS5 called from a .txt file?

I've been using Flash for a few years now and I've recently (5 months+) started using CS5 package.

My query is how do I successfully embed accented latin characters into a "classic" dynamic text field in my compiled Flash movie that are called from an external text file. I've searched the various forums online and all the methods demonstrated have not worked.

What I've done so far is to to select my dynamic text field, click on "Embed" within the PROPERTIES area, choose the font and the weight, then add any of the foreign characters and/or glyphs to the "Also include these characters:" area then finish up and compile. When I run my SWF file, the glyphs and accented fonts are missing but all the other typical Latin characters show up.

I tried this same method in CS4 (because we have an old开发者_如何转开发 Mac in the office too), and almost the same thing happened except instead of completely missing out the glyphs and fonts, it showed a box (almost like an image placeholder) instead.

What am I doing wrong?


I've found that I have to add Basic Latin and the extended Latin sets from further down the list, to ensure the standard accented characters from French appear correctly.

Also make sure that your chosen font does support the full range of characters you require by opening it in Character Map (windows).


ANSWER:

The above suggestions by @shanethehat are correct so thanks again ShaneTheHat however, if the following is not in place, it will simply not work.

SOLUTION:

Ensure that your external file being loaded dynamically is also supported; in my case a text file. To ensure a text file is supported when loading text with foreign characters into a dynamic text field in Flash, make sure you save it as a UTF-8 Unicode.

METHOD:

Whilst in Text Edit, click FILE > SAVE AS, name your file and at the bottom of the Save As dialoue box, you will see "Plain Text Encoding" with a drop down list next to it, click the drop-down and choose "Unicode (UTF-8)" and then save it.

Viola! Problem solved!!!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜