# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2016-2017 Anaconda, Inc. # # May be copied and distributed freely only as part of an Anaconda or # Miniconda installation. # ----------------------------------------------------------------------------- """Custom Fonts.""" from __future__ import absolute_import, division, print_function import glob import os from qtpy.QtGui import QFontDatabase PATH = os.path.dirname(os.path.realpath(__file__)) FONTFILES = glob.glob(os.path.join(PATH, '*.ttf')) def load_fonts(app): """Load custom fonts.""" app.database = QFontDatabase() for font in FONTFILES: app.database.addApplicationFont(font)