label: the initial font_name assignment is not using resource_find(). fix to use it now.

This commit is contained in:
Mathieu Virbel 2011-05-27 18:59:38 +02:00
parent be5f5b2475
commit 21f38eba69
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ class Label(Widget):
self.bind(**dkw)
dkw = dict(zip(d, [getattr(self, x) for x in d]))
font_name = resource_find(self.font_name)
if font_name:
dkw['font_name'] = font_name
self._label = CoreLabel(**dkw)
# force the texture creation