mirror of https://github.com/kivy/kivy.git
label: the initial font_name assignment is not using resource_find(). fix to use it now.
This commit is contained in:
parent
be5f5b2475
commit
21f38eba69
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue