I'm working on a multilingual flex application that has to run in 27+ languages, including asian, hebrew and arabic, as well as all european languages.
We work with an embedded font (Myriad Pro) and have plenty of styles in a css that make use of that embedded font. We've tested with a modified version of Myriad including all non western unicode chars taken from Arial Unicode and it works ok, but the weight of the swf is unacceptable.
We have this two lines in our css..
@font-face
{
src: url("MyriadPro-Semibold.otf");
fontFamily: "Default Font";
fontWeight: bold;
advancedAntiAliasing: true;
}
@font-face
{
src: url("MyriadPro-Regular.otf");
fontFamily: "Default Font";
advancedAntiAliasing: true;
}
and the rest of stlyes use the "Default Font" when needed.
What is the best solution for implementing the multilingual apps with runtime loading fonts, while maintaining the current stylesheet?
Yes, the languages are downloaded from the server when the user changes the language, but not the font.
My concern is, if I have to download an asian font different from Myriad, how can say to flash, hey my "Default Font" is now this asian font. And if i have to display the language names, how can I display the asian names, without changing the list style...
It's not easy.