Since I couldn't find anything about it in the forum, I did it myself:
public static void drawChromaString(String text, int x, int y, boolean shadow, int size) {
FontRenderer fr = new FontRenderer("Arial", size);
int tmpX = x;
for (char currentChar ...