Set markup to True in the label, and use markup text
Read: https://kivy.org/doc/stable/api-kivy.uix.label.html?highlight=label#markup-text
Example:
from kivy.app import App
from kivy.lang import Builder
kv = """
BoxLayout:
Label:
markup: True
text: '[size=60]Big Text[/size][size=12] Small Text[/size]'
"""
class MarkupLabelApp(App):
def build(self):
return Builder.load_string(kv)
MarkupLabelApp().run()
--
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 on the web visit https://groups.google.com/d/msgid/kivy-users/c17f7cc7-ccfe-4e72-bf38-c32edd232db6%40googlegroups.com.