Search code examples
python-3.xkivykivy-language

Display approval sign/check mark (✓) on Kivy Label


I am working on a Kivy(Python) Project and I need to display approval(✓) and cross(X) symbol in different scenario. I can display cross symbol but unable to display other one. Is there any way to do this ? Thanks.

Note: I have tried, writing text:'✓' and text:u'2713' under Label in .kv file but it doesn't work.


Solution

  • The font supplied with Kivy doesn't include the tick mark. You need to use fonts that include those symbols. Tick is available in fonts Arial Unicode MS, Wingdings and Wingdings 2. You can download the font ttf file and have it in the same folder with your script.

    Link to download the font https://www.download-free-fonts.com/details/88978/arial-unicode-ms

    Then include the font and use it in the label as follow:

    Label:
       font_name:'arial-unicode-ms.ttf'
       text: "This is the tick ✓"