crayon
crayon copied to clipboard
Graphics2DText monospacing - not working?
I basically have been using what I believe to be a monospaced font from my system. In fact, it appears from other applications to be monospaced, but it seems to draw normal width letters. I know there's an enum which has a 'monospace' value, but I don't think it's even publicly accessible, is it?
Here's some test code which can be used on a mac.
import Graphics2DText;
fontresource = FontResource.fromSystem("Courier New");
renderer = new FontRenderer(fontresource);
renderer.render(text);
texture.draw(x, y);