diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-28 22:29:00 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-07-28 22:40:56 +0200 |
commit | 182b6ab1544840ac1827dc95e7f6cd0f1c8d4862 (patch) | |
tree | b0da7ecc46edf166fe81fd8049573264998e9368 /music_sampler | |
parent | 60aa2bed939858f9aec4252071c8efd99baac7e3 (diff) | |
download | MusicSampler-182b6ab1544840ac1827dc95e7f6cd0f1c8d4862.tar.gz MusicSampler-182b6ab1544840ac1827dc95e7f6cd0f1c8d4862.tar.zst MusicSampler-182b6ab1544840ac1827dc95e7f6cd0f1c8d4862.zip |
Cleanup mocked fonts
Diffstat (limited to 'music_sampler')
-rw-r--r-- | music_sampler/music_sampler.kv | 25 |
1 files changed, 1 insertions, 24 deletions
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,22 +109,9 @@ | |||
109 | play_list_y: self.border | 109 | play_list_y: self.border |
110 | play_list_x: self.action_list_width + self.key_list_width + 3 * self.border | 110 | play_list_x: self.action_list_width + self.key_list_width + 3 * self.border |
111 | 111 | ||
112 | max_height: max(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height) | 112 | max_height: 1.3 * math.ceil(2 * math.sqrt(self.key_size or 10)) |
113 | min_height: min(mock_symbola.height, mock_ubuntu_regular.height, mock_ubuntu_bold.height) | ||
114 | symbola_line_height: self.min_height / max(mock_symbola.height,1) | ||
115 | ubuntu_regular_line_height: self.min_height / max(mock_ubuntu_regular.height,1) | ||
116 | ubuntu_bold_line_height: self.min_height / max(mock_ubuntu_bold.height,1) | ||
117 | 113 | ||
118 | Label: | 114 | Label: |
119 | id: mock_symbola | ||
120 | font_name: "Symbola" | ||
121 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) | ||
122 | color: 0, 0, 0, 0 | ||
123 | text: "A" | ||
124 | text_size: None, None | ||
125 | size_hint: None, None | ||
126 | size: self.texture_size | ||
127 | Label: | ||
128 | id: mock_ubuntu_regular | 115 | id: mock_ubuntu_regular |
129 | font_name: "Ubuntu" | 116 | font_name: "Ubuntu" |
130 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) | 117 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) |
@@ -133,16 +120,6 @@ | |||
133 | text_size: None, None | 120 | text_size: None, None |
134 | size_hint: None, None | 121 | size_hint: None, None |
135 | size: self.texture_size | 122 | size: self.texture_size |
136 | Label: | ||
137 | id: mock_ubuntu_bold | ||
138 | font_name: "Ubuntu" | ||
139 | bold: True | ||
140 | font_size: math.ceil(2 * math.sqrt(self.parent.key_size or 10)) | ||
141 | color: 0, 0, 0, 0 | ||
142 | text: "A" | ||
143 | text_size: None, None | ||
144 | size_hint: None, None | ||
145 | size: self.texture_size | ||
146 | 123 | ||
147 | Mapping: | 124 | Mapping: |
148 | id: Mapping | 125 | id: Mapping |