Bold-Face characters in KIVY label text

7 views
Skip to first unread message

Edward Anderson

unread,
Jun 11, 2026, 9:26:35 AM (14 days ago) Jun 11
to Kivy users support
Does anyone know how to place BF characters in KIVY label mixed text. I have tried - "//33[1m Bold Text //33[0m is cool" - which should render as -  Bold Text is cool. This works correctly when printed to the terminal. But when assigned to label text it is rendered as  /33[1m Bold Text /33[0m is cool. I have also tried  "[b] Bold Text [/b] is cool" with similar results.  Setting bold=True renders the entire text block as bold-face. All suggestions are appreciated. 

ElliotG

unread,
Jun 11, 2026, 11:31:24 AM (14 days ago) Jun 11
to Kivy users support
You want to set the markup attribute of the label to True, and use  "[b] Bold Text [/b] is cool" 
Read:   https://kivy.org/doc/stable/api-kivy.uix.label.html#markup-text

Edward Anderson

unread,
Jun 11, 2026, 1:49:42 PM (13 days ago) Jun 11
to kivy-...@googlegroups.com
Thanks again.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kivy-users/8a60507a-3939-4bec-b7d8-bdbd4be4ef6an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages