Replacing rm.getFont("").drawString by rm.txt()