当我尝试输入阿拉伯语文本时遇到的问题我的代码是:
My problem when i try type arabic text My code is :
import kivy
from kivy.app import App
from kivy.uix.textinput import TextInput
class TestApp(App):
def build(self):
return TextInput(text='مرحبا بكم ')
myapp=TestApp()
myapp.run()
当我执行textinput 文本是一些Square
when i execute Textinput text is a some of Square
你必须给标签一个支持阿拉伯语
#option1 -- on each TextInput
TextInput:
font_name: "path/to/a/font/that/support/arabic.ttf"
#option2 override for all TextInputs
<TextInput>:
font_name: ...
来自 docs 说:
警告根据您的文本提供者,字体文件可能会被忽略.但是,您通常可以毫无问题地使用它.如果使用的字体缺少您正在使用的特定语言/符号的字形,您将看到[]"空白框字符而不是实际字形.解决方案是使用具有您需要显示的字形的字体.例如,要显示 unicodechar,请使用具有字形的 freesans.ttf 之类的字体.
Warning Depending on your text provider, the font file may be ignored. However, you can mostly use this without problems. If the font used lacks the glyphs for the particular language/symbols you are using, you will see ‘[]’ blank box characters instead of the actual glyphs. The solution is to use a font that has the glyphs you need to display. For example, to display unicodechar, use a font like freesans.ttf that has the glyph.
这篇关于蟒蛇|标签文本上的阿拉伯文文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何制作一个在 Python 中提供角色的不和谐机器人How to make a discord bot that gives roles in Python?(如何制作一个在 Python 中提供角色的不和谐机器人?)
Discord 机器人没有响应命令Discord bot isn#39;t responding to commands(Discord 机器人没有响应命令)
你能得到“关于我"吗?Discord 机器人的功能?Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“关于我吗?Discord 机器人的功能?(不和谐.py))
message.channel.id Discord PYmessage.channel.id Discord PY(message.channel.id Discord PY)
如何在 heroku 上托管我的 discord.py 机器人?How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 机器人?)
discord.py - 自动更改角色颜色discord.py - Automaticaly Change an Role Color(discord.py - 自动更改角色颜色)