How can I draw a font using a 2D pixel array?

Initially I was trying to access the BufferedImage graphics, and draw the string to the BufferedImage. I got the drawString method to work, but it wouldn’t change the font size when I set the font size. How can I draw a simple string to a 2D pixel array so that I don’t have to create a sprite sheet and handle fonts using the spirte sheet?