From: Ismaƫl Bouya Date: Thu, 28 Jul 2016 20:29:00 +0000 (+0200) Subject: Cleanup mocked fonts X-Git-Tag: 1.0.2~4 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git;a=commitdiff_plain;h=182b6ab1544840ac1827dc95e7f6cd0f1c8d4862 Cleanup mocked fonts --- diff --git a/music_sampler/music_sampler.kv b/music_sampler/music_sampler.kv index afb99e4..4a91896 100644 --- a/music_sampler/music_sampler.kv +++ b/music_sampler/music_sampler.kv @@ -109,21 +109,8 @@ 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" @@ -133,16 +120,6 @@ 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