crayon icon indicating copy to clipboard operation
crayon copied to clipboard

Graphics2DText monospacing - not working?

Open TimJSwan89 opened this issue 5 years ago • 0 comments

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);

TimJSwan89 avatar Oct 16 '19 23:10 TimJSwan89