+ min_height: min(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height)
+ symbola_line_height: self.min_height / max(mock_symbola.height,1)
+ ubuntu_regular_line_height: self.min_height / max(mock_ubuntu_regular.height,1)
+ ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1)
+ Label:
+ id: mock_symbola
+ font_name: h.path() + "fonts/Symbola.ttf"
+ font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
+ color: 0, 0, 0, 0
+ text: "A"
+ text_size: None, None
+ size_hint: None, None
+ size: self.texture_size
+ Label:
+ id: mock_ubuntu_regular
+ font_name: h.path() + "fonts/Ubuntu-Regular.ttf"
+ font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
+ color: 0, 0, 0, 0
+ text: "A"
+ text_size: None, None
+ size_hint: None, None
+ size: self.texture_size
+ Label:
+ id: mock_ubuntu_bold
+ font_name: h.path() + "fonts/Ubuntu-B.ttf"
+ font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10))
+ color: 0, 0, 0, 0
+ text: "A"
+ text_size: None, None
+ size_hint: None, None
+ size: self.texture_size
+