src/neon/rendering/RenderSystem.java
/**
   * Draws text.
   *
   * @param graphics the graphics object used to draw the game's graphics
   * @param textObj the text to be drawn
   */
Draws text.
@param graphics the graphics object used to draw the game's graphics
@param textObj the text to be drawn
Draws text . @param graphics the graphics object used to draw the game ' s graphics @param textObj the text to be drawn
public static void drawText(Graphics graphics, TextObject textObj) {
    graphics.setFont(textObj.getFont());
    graphics.setColor(textObj.getColor());
    WindowSettings settings = NeonEngine.getSettings().windowSettings;
    RectangularHitbox hitbox = textObj.getHitbox();
    graphics.drawString(
        textObj.getText(),
        (int) Math.round(hitbox.getLowerXBound() * settings.width),
        (int)
            Math.round(
                reverseY(
                    (hitbox.getCenter().getY() - textObj.getDescent() * 1.5) * settings.height)));
  }
public static void drawText ( Graphics graphics , TextObject textObj ) { graphics . setFont ( textObj . getFont ( ) ) ; graphics . setColor ( textObj . getColor ( ) ) ; WindowSettings settings = NeonEngine . getSettings ( ) . windowSettings ; RectangularHitbox hitbox = textObj . getHitbox ( ) ; graphics . drawString ( textObj . getText ( ) , ( int ) Math . round ( hitbox . getLowerXBound ( ) * settings . width ) , ( int ) Math . round ( reverseY ( ( hitbox . getCenter ( ) . getY ( ) - textObj . getDescent ( ) * 1.5 ) * settings . height ) ) ) ; }
Draws text.
Draws text .