using bangla language in label text of kivy app

2019-08-31 05:20发布

i want to add bangla text in a label. im using several font for this. here i used kalpurush.ttf. the bangla text is showing well. but some problem with sequence of bangla letter. i wrote "তিন আস্তানা মাস্তান"। but it shows- "ত িন আসতানা মাসতান" its not showing the conjunct word also. and "ি" sign should be before "ত" but here its after. I'm using pydroid app.

in kivy launcher when i use any other font than english it just crashes. so kivy launcher doesnt support any other font.

i just want to know how does bangla text look like when running it in a pc. but i have no pc.

can anoyone run this code on pc please and give me screenshot? i just need to know does bangla font shows well in kivy. cause i have to make an android app in my native language(bangla)

from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.lang import Builder

Builder.load_string('''

<hello>:
    Label:
        text:"তিন অাস্তানা মাস্তান"
        font_name:"kalpurush.ttf" #please download this font

''')

class hello(BoxLayout):
    pass

class go(App):
    def build(self):
        return hello()

go().run()

标签: text label kivy
0条回答
登录 后发表回答