¡@

Home 

2014/10/16 ¤W¤È 08:10:32

android Programming Glossary: bidi

How to draw RTL text (Arabic) onto a Bitmap and have it ordered properly?

http://stackoverflow.com/questions/1417503/how-to-draw-rtl-text-arabic-onto-a-bitmap-and-have-it-ordered-properly

issue is because unlike a TextView the Bitmap class is not BiDi aware so it draws the letters from left to write. Try as I might.. of Skia native graphics engine . Skia doesn't perform any BiDi reshaping it simply draws sequences of glyphs. TextView on the.. Layout and derived classes which do simple actually dumb BiDi. Android's BiDi is very dumb that it can't even handle digits..

How to draw RTL text (Arabic) onto a Bitmap and have it ordered properly?

http://stackoverflow.com/questions/1417503/how-to-draw-rtl-text-arabic-onto-a-bitmap-and-have-it-ordered-properly

looks like this When it should look like جر I believe the issue is because unlike a TextView the Bitmap class is not BiDi aware so it draws the letters from left to write. Try as I might I can't figure out how to draw the text in the correct.. question Canvas is practically a wrapper around the Canvas of Skia native graphics engine . Skia doesn't perform any BiDi reshaping it simply draws sequences of glyphs. TextView on the other way uses a load of Android's text related objects among.. way uses a load of Android's text related objects among them Layout and derived classes which do simple actually dumb BiDi. Android's BiDi is very dumb that it can't even handle digits in RTL 'ط 180' is displayed 'ط 081'. Personally I don't trust..