Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-10-2012, 01:15 PM   #1
Registered User
Join Date: Jul 2012
Posts: 1
Default Flex Multi Fonts with one family name

I have problem in fonts with different Unicode ranges,
where I have spark label which will contain English and Unicode characters.
so I want the English characters to take font 'NeoTechMedium.TTF' and the Unicode to take the font 'GE_Dinar_One_Medium.otf'. so What I did that I created 2 embedded fonts with same font family and different Unicode ranges as following :
@font-face {
src: url("/assets/Fonts/GE_Dinar_One_Medium.otf");
fontFamily: TestFont;

@font-face {
src: url("/assets/Fonts/NeoTechMedium.TTF");
fontFamily: TestFont;
unicode-range: U+0020-U+007E;

and then I created a CSS class with font-family as following

fontFamily: TestFont;
font-size: 20px;
color: #642b7f;

and then I gave the label stylename =LiveSupport

<s:Label text="MMMMMMMMMMMMMMMسيسيسيسيس" styleName="LiveSupport"/>

but what happened that, the font was applying only to the unicode characters and for English characters nothing happened.

also I found that, if I changed the fonts order by put English font first, the English characters take the font and the Unicode characters lose the font.
so what is the problem here and how I can fix it.
please any help or hint.
thanks in advance.
WaelBaidousee is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:55 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.