Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting global font size in kivy

What is the preferred way, whether through python or the kivy language, to set the global font size (i.e. for Buttons and Labels) in kivy?

What is a good way to dynamically change the global font size setting in proportion to the size of the window?

like image 376
James_L Avatar asked Sep 27 '13 14:09

James_L


1 Answers

<Label>:
    font_size: dp(20)
    font_name: 'path/to/funcy/font.ttf'

Will set the font name and the font size globally for any widget that uses Label as it's base(TextInput and a few other widgets don't).

like image 105
qua-non Avatar answered Oct 02 '22 13:10

qua-non