Lines Matching refs:Font
26 * This Sprite sets the font for another given sprite.
32 private final VariableFont font;
38 * @param font the variable Font of the given sprite.
39 * @param sprite the sprite that will be provided of a font and painted.
41 public FontSprite(VariableFont font,
44 this.font = font;
53 // Save the old font.
54 Font oldFont = graphics.getFont();
56 // Set the new font.
57 graphics.setFont(font.getFont(time));
62 // Restore the old font.