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? 回答1: Use a template to create your custom Label: from kivy.app import App from kivy.lang import Builder from kivy.uix.widget import Widget from kivy.properties import ObjectProperty, NumericProperty kv = ''' [MyLabel@Label]: text: ctx.text if