From 21f38eba69c8079a86c5e358f4d95db733efec8f Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 27 May 2011 18:59:38 +0200 Subject: [PATCH] label: the initial font_name assignment is not using resource_find(). fix to use it now. --- kivy/uix/label.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kivy/uix/label.py b/kivy/uix/label.py index d7c82a715..841bc1120 100644 --- a/kivy/uix/label.py +++ b/kivy/uix/label.py @@ -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