def __init__(self): if NumbersFont.fontImage is None: imagePath = os.path.join(FONT_FOLDER, "numbers.png") NumbersFont.fontImage = view.loadScaledImage(imagePath, None) charImages = view.processFontImage(NumbersFont.fontImage, 8 * SCALAR) Font.__init__(self, NUMBERS, charImages)
def __init__(self): if GameFont.fontImage is None: imagePath = os.path.join(FONT_FOLDER, "font.png") GameFont.fontImage = view.loadScaledImage(imagePath, None) charImages = view.processFontImage(GameFont.fontImage, 8 * SCALAR, 3) Font.__init__(self, CHARS, charImages)