{"action":"closed","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3270","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3270/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3270/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3270/events","html_url":"https://github.com/kivy/kivy/issues/3270","id":68088438,"number":3270,"title":"Register all folders recursively under default font paths","user":{"login":"dessant","id":7513068,"avatar_url":"https://avatars.githubusercontent.com/u/7513068?v=3","gravatar_id":"","url":"https://api.github.com/users/dessant","html_url":"https://github.com/dessant","followers_url":"https://api.github.com/users/dessant/followers","following_url":"https://api.github.com/users/dessant/following{/other_user}","gists_url":"https://api.github.com/users/dessant/gists{/gist_id}","starred_url":"https://api.github.com/users/dessant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dessant/subscriptions","organizations_url":"https://api.github.com/users/dessant/orgs","repos_url":"https://api.github.com/users/dessant/repos","events_url":"https://api.github.com/users/dessant/events{/privacy}","received_events_url":"https://api.github.com/users/dessant/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/core","name":"core","color":"444444"}],"state":"closed","locked":false,"assignee":{"login":"akshayaurora","id":788023,"avatar_url":"https://avatars.githubusercontent.com/u/788023?v=3","gravatar_id":"","url":"https://api.github.com/users/akshayaurora","html_url":"https://github.com/akshayaurora","followers_url":"https://api.github.com/users/akshayaurora/followers","following_url":"https://api.github.com/users/akshayaurora/following{/other_user}","gists_url":"https://api.github.com/users/akshayaurora/gists{/gist_id}","starred_url":"https://api.github.com/users/akshayaurora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshayaurora/subscriptions","organizations_url":"https://api.github.com/users/akshayaurora/orgs","repos_url":"https://api.github.com/users/akshayaurora/repos","events_url":"https://api.github.com/users/akshayaurora/events{/privacy}","received_events_url":"https://api.github.com/users/akshayaurora/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kivy/kivy/milestones/25","html_url":"https://github.com/kivy/kivy/milestones/1.9.1","labels_url":"https://api.github.com/repos/kivy/kivy/milestones/25/labels","id":741176,"number":25,"title":"1.9.1","description":"","creator":{"login":"akshayaurora","id":788023,"avatar_url":"https://avatars.githubusercontent.com/u/788023?v=3","gravatar_id":"","url":"https://api.github.com/users/akshayaurora","html_url":"https://github.com/akshayaurora","followers_url":"https://api.github.com/users/akshayaurora/followers","following_url":"https://api.github.com/users/akshayaurora/following{/other_user}","gists_url":"https://api.github.com/users/akshayaurora/gists{/gist_id}","starred_url":"https://api.github.com/users/akshayaurora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshayaurora/subscriptions","organizations_url":"https://api.github.com/users/akshayaurora/orgs","repos_url":"https://api.github.com/users/akshayaurora/repos","events_url":"https://api.github.com/users/akshayaurora/events{/privacy}","received_events_url":"https://api.github.com/users/akshayaurora/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":74,"state":"open","created_at":"2014-08-03T19:04:24Z","updated_at":"2015-12-03T22:13:45Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-13T12:45:21Z","updated_at":"2015-12-03T22:13:45Z","closed_at":"2015-12-03T22:13:45Z","body":"Fonts grouped in subdirectories under default font paths are not found, for example when the font file is at  `/usr/share/fonts/truetype/msttcorefonts/FontName.ttf`:\r\n\r\n```python\r\nfrom kivy.app import App\r\nfrom kivy.uix.button import Button\r\n\r\n\r\nclass TestApp(App):\r\n    def build(self):\r\n        return Button(font_name='FontName')\r\n\r\nif __name__ == '__main__':\r\n    TestApp().run()\r\n```\r\n\r\n```python\r\n Traceback (most recent call last):\r\n   File \"/home/vix/dev/prs/main/test/test_11.py\", line 20, in <module>\r\n     TestApp().run()\r\n   File \"/home/vix/dev/prs/kivy/kivy/app.py\", line 824, in run\r\n     runTouchApp()\r\n   File \"/home/vix/dev/prs/kivy/kivy/base.py\", line 487, in runTouchApp\r\n     EventLoop.window.mainloop()\r\n   File \"/home/vix/dev/prs/kivy/kivy/core/window/window_sdl2.py\", line 539, in mainloop\r\n     self._mainloop()\r\n   File \"/home/vix/dev/prs/kivy/kivy/core/window/window_sdl2.py\", line 300, in _mainloop\r\n     EventLoop.idle()\r\n   File \"/home/vix/dev/prs/kivy/kivy/base.py\", line 327, in idle\r\n     Clock.tick()\r\n   File \"/home/vix/dev/prs/kivy/kivy/clock.py\", line 483, in tick\r\n     self._process_events()\r\n   File \"/home/vix/dev/prs/kivy/kivy/clock.py\", line 615, in _process_events\r\n     event.tick(self._last_tick, remove)\r\n   File \"/home/vix/dev/prs/kivy/kivy/clock.py\", line 374, in tick\r\n     ret = callback(self._dt)\r\n   File \"/home/vix/dev/prs/kivy/kivy/uix/label.py\", line 267, in texture_update\r\n     self._label.refresh()\r\n   File \"/home/vix/dev/prs/kivy/kivy/core/text/__init__.py\", line 614, in refresh\r\n     self.resolve_font_name()\r\n   File \"/home/vix/dev/prs/kivy/kivy/core/text/__init__.py\", line 257, in resolve_font_name\r\n     raise IOError('Label: File %r not found' % fontname)\r\n OSError: Label: File 'FontName.ttf' not found\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/11044057-register-all-folders-recursively-under-default-font-paths?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}