From 96794a95b93713e149894d81d85c75bfce503ce7 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 7 Sep 2020 20:18:54 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocks.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kivyblocks/blocks.py b/kivyblocks/blocks.py index c8937bf..613b9c5 100755 --- a/kivyblocks/blocks.py +++ b/kivyblocks/blocks.py @@ -4,6 +4,14 @@ import codecs import json from traceback import print_exc +import kivy +from kivy.config import Config +from kivy.resources import resource_add_path +resource_add_path(os.path.join(os.path.dirname(__file__),'./ttf')) +Config.set('kivy', 'default_font', [ + 'msgothic', + 'DroidSansFallback.ttf']) + from functools import partial from appPublic.dictExt import dictExtend