]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Cleanup mocked fonts
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 28 Jul 2016 20:29:00 +0000 (22:29 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 28 Jul 2016 20:40:56 +0000 (22:40 +0200)
music_sampler/music_sampler.kv

index afb99e411907a9e0c7de411bdb9f98a3f2d5f68a..4a91896c98a98eb55426829518e9068c4fec307c 100644 (file)
   play_list_y: self.border
   play_list_x: self.action_list_width + self.key_list_width + 3 * self.border
 
-  max_height: max(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height)
-  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)
+  max_height: 1.3 * math.ceil(2 * math.sqrt(self.key_size or 10))
 
-  Label:
-    id: mock_symbola
-    font_name: "Symbola"
-    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: "Ubuntu"
     text_size: None, None
     size_hint: None, None
     size: self.texture_size
-  Label:
-    id: mock_ubuntu_bold
-    font_name: "Ubuntu"
-    bold: True
-    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
 
   Mapping:
     id: Mapping