Mercurial > parpg-source
diff font.py @ 150:80672955ab70
PARPG now works with, and needs Fife 0.3.3.
author | KarstenBock@gmx.net |
---|---|
date | Tue, 11 Oct 2011 14:47:37 +0200 |
parents | 06145a6ee387 |
children |
line wrap: on
line diff
--- a/font.py Mon Oct 10 15:12:33 2011 +0200 +++ b/font.py Tue Oct 11 14:47:37 2011 +0200 @@ -1,7 +1,8 @@ import os +from fife.extensions import pychan from fife.extensions.pychan.fonts import Font -from fife.extensions.pychan.internal import get_manager + class PARPGFont(Font): """ Font class for PARPG @@ -35,7 +36,7 @@ self.size = fontdef['size'] self.antialias = fontdef['antialias'] self.color = fontdef.get('color', [255, 255, 255]) - manager = get_manager().hook.engine.getGuiManager() + manager = pychan.manager.hook.guimanager self.font = manager.createFont(self.source, self.size, '') if not self.font: