Source code for yyagl.engine.font

from yyagl.gameobject import GameObject


[docs]class FontMgr(GameObject): def __init__(self): GameObject.__init__(self) self.__fonts = {}
[docs] def load_font(self, fpath, outline=True): if fpath not in self.__fonts: self.__fonts[fpath] = self.eng.lib.load_font(fpath, outline) return self.__fonts[fpath]
[docs] def destroy(self): self.__fonts = None GameObject.destroy(self)