If you specify an embedded font, there is no fallback if the characters are not 
in the font.

There is some fallback capability in TLF so try using Flex 4 beta2 components

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of cap
Sent: Friday, October 09, 2009 12:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to embed the font with unicode range with different 
language



Hi,

I would like to use the embed font for the only Numberic and English letter but 
use the default for different country language (eg. Chinese). I found that i 
cannot do that in the following code. Can some expert give me advice on it?
thx

capho

<?xml version="1.0"?>
<!-- fonts/EmbeddedFontCharacterRange.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
<mx:Style>
@font-face {
src:url("test.ttf");
fontFamily: myFontFamily;

unicodeRange:
U+0041-U+005A, /* Upper-Case [A..Z] */
U+0061-U+007A, /* Lower-Case a-z */
U+0030-U+0039, /* Numbers [0..9] */
U+002E-U+002E; /* Period [.] */

}

</mx:Style>

<mx:Panel title="Embedded Font Character Range">
<mx:TextArea width="400" height="150" text="abcdTest&#28204;&#35430;" 
fontFamily="myFontFamily"/>
</mx:Panel>
</mx:Application>

Reply via email to