• <bdo id='Ii9M5'></bdo><ul id='Ii9M5'></ul>
    <legend id='Ii9M5'><style id='Ii9M5'><dir id='Ii9M5'><q id='Ii9M5'></q></dir></style></legend>
    1. <i id='Ii9M5'><tr id='Ii9M5'><dt id='Ii9M5'><q id='Ii9M5'><span id='Ii9M5'><b id='Ii9M5'><form id='Ii9M5'><ins id='Ii9M5'></ins><ul id='Ii9M5'></ul><sub id='Ii9M5'></sub></form><legend id='Ii9M5'></legend><bdo id='Ii9M5'><pre id='Ii9M5'><center id='Ii9M5'></center></pre></bdo></b><th id='Ii9M5'></th></span></q></dt></tr></i><div id='Ii9M5'><tfoot id='Ii9M5'></tfoot><dl id='Ii9M5'><fieldset id='Ii9M5'></fieldset></dl></div>
        <tfoot id='Ii9M5'></tfoot>

        <small id='Ii9M5'></small><noframes id='Ii9M5'>

      1. 蟒蛇|标签文本上的阿拉伯文文本

        时间:2023-10-10
        <tfoot id='OLKfN'></tfoot>
          <bdo id='OLKfN'></bdo><ul id='OLKfN'></ul>
        • <legend id='OLKfN'><style id='OLKfN'><dir id='OLKfN'><q id='OLKfN'></q></dir></style></legend>

            <tbody id='OLKfN'></tbody>

              1. <small id='OLKfN'></small><noframes id='OLKfN'>

                <i id='OLKfN'><tr id='OLKfN'><dt id='OLKfN'><q id='OLKfN'><span id='OLKfN'><b id='OLKfN'><form id='OLKfN'><ins id='OLKfN'></ins><ul id='OLKfN'></ul><sub id='OLKfN'></sub></form><legend id='OLKfN'></legend><bdo id='OLKfN'><pre id='OLKfN'><center id='OLKfN'></center></pre></bdo></b><th id='OLKfN'></th></span></q></dt></tr></i><div id='OLKfN'><tfoot id='OLKfN'></tfoot><dl id='OLKfN'><fieldset id='OLKfN'></fieldset></dl></div>

                • 本文介绍了蟒蛇|标签文本上的阿拉伯文文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  当我尝试输入阿拉伯语文本时遇到的问题我的代码是:

                  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 Kivy 应用程序中打开 pdf? 下一篇:如何在 Kivy/Python 的另一个屏幕中从一个屏幕引用

                  相关文章

                  最新文章

                    <small id='oBsmk'></small><noframes id='oBsmk'>

                      • <bdo id='oBsmk'></bdo><ul id='oBsmk'></ul>
                      <i id='oBsmk'><tr id='oBsmk'><dt id='oBsmk'><q id='oBsmk'><span id='oBsmk'><b id='oBsmk'><form id='oBsmk'><ins id='oBsmk'></ins><ul id='oBsmk'></ul><sub id='oBsmk'></sub></form><legend id='oBsmk'></legend><bdo id='oBsmk'><pre id='oBsmk'><center id='oBsmk'></center></pre></bdo></b><th id='oBsmk'></th></span></q></dt></tr></i><div id='oBsmk'><tfoot id='oBsmk'></tfoot><dl id='oBsmk'><fieldset id='oBsmk'></fieldset></dl></div>
                      <tfoot id='oBsmk'></tfoot>
                      <legend id='oBsmk'><style id='oBsmk'><dir id='oBsmk'><q id='oBsmk'></q></dir></style></legend>