java - lwjgl freezes on creation of Font object -
i making simple game of snake, because can, , stumbled across interesting bug. trying use slick-util draw text on screen, whenever try create font object game freezes. here code. highlighted section prints 'a' once. package tlf.snake.main; import tlf.snake.main.game.helper.pos; import tlf.snake.main.game.input.input; import java.awt.font; import java.nio.bytebuffer; import java.nio.intbuffer; import org.lwjgl.bufferutils; import org.lwjgl.glfw.glfwwindowposcallback; import org.lwjgl.glfw.glfwwindowsizecallback; import org.lwjgl.glfw.glfwvidmode; import org.lwjgl.opengl.glcontext; import org.newdawn.slick.truetypefont; import static org.lwjgl.glfw.callbacks.glfwsetcallback; import static org.lwjgl.glfw.glfw.*; import static org.lwjgl.opengl.gl11.*; import static org.lwjgl.system.memoryutil.null; /** * @author thislooksfun */ public class snakegame { private static final game game = new game(); private int width = game.gamewidth*15; private int heigh...