Font In flex 4.1 with different Unicode ranges


hi,

i have problem in fonts different unicode ranges,

where have spark label contain english , unicode characters.

so want english characters take font 'neotechmedium.ttf' , unicode take font 'ge_dinar_one_medium.otf'. did created 2 embedded fonts same font family , different unicode ranges following :

/*---------------------------------------------------*/

@font-face {

          src: url("/assets/fonts/ge_dinar_one_medium.otf");

          fontfamily: testfont;

          unicode-range:u+0600-u+06ff,

                                         u+fb50-u+fdff,

                                         u+fe70-u+feff,

                                         u+0020-u+007e;

}

 

 

@font-face {

          src: url("/assets/fonts/neotechmedium.ttf");

          fontfamily: testfont;

          unicode-range: u+0020-u+007e;

}

/*---------------------------------------------------*/

 

 

and created css class font-family following

/*---------------------------------------------------*/

 

 

.livesupport

{

          fontfamily:                     testfont;

          font-size:          20px;

          color:                              #642b7f;

}

/*---------------------------------------------------*/

 

 

and gave label stylename =livesupport

 

 

<s:label text="mmmmmmmmmmmmmmmسيسيسيسيس" stylename="livesupport"/>

 

 

but happened that, font applying unicode characters , english characters nothing happened.

 

 

also found that, if changed fonts order  put  english font first, english characters take font , unicode characters lose font.

so problem here , how can fix it.

please or hint.

thanks in advance.



More discussions in Flex SDK


adobe

Comments