using bangla language in label text of kivy app

我们两清 提交于 2020-01-17 01:17:05

问题


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()

来源:https://stackoverflow.com/questions/57130508/using-bangla-language-in-label-text-of-kivy-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!