@Younes: 🙈 I must admit I totally forgot about that. However, I took your earlier message as a reminder and have just updated that extension properly for Starling 2. You can download it here; it's now only two classes!
You don't need any special TextField class any longer; you only need to use "BitmapFontRTL" instead of the normal version, and register that on the TextField. Like this:
var texture:Texture = Texture.fromBitmap(new KoodakTexture());
var xml:XML = XML(new KoodakXml());
var bmpFontRTL:BitmapFontRTL = new BitmapFontRTL(texture, xml);
var text:String = "اتتت ات اثثث اث";
var textField:TextField = new TextField(300, 50, text);
textField.format.setTo("B Koodak", -1, 0x333333);
Could you please try that out? I'd love to make this a proper extension.
However, this still does not help with different font sizes. This currently only works with the fonts from the extension this was based on. However, I'll try to get it contact with Ali (who created the original extension) and ask him if he's got any projects files for this, so we can maybe create a DF variant.
@mesh: Thanks a lot for the heads-up! I just fixed that. Cool example GIF, thanks for sharing!!! =D
@rodrigo: Thanks for creating the issue — I just closed it with the fix! 😉
As for the "offsety" issue: you're right, that's definitely noticeable in your example.
I supposed that was created with msdf-bmfont-xml? Could you maybe create an issue on its GitHub page and ask soimy if there is anything he can do to fix that? He's been very helpful in the past and always quickly looked into my suggestions. Maybe there's a way to fix that.