加载字体“textures/myfont.tff”失败(创建字体失败)
Font font = new Font("textures/myfont.tff");
menu[0].Style = Text.Styles.Bold;
menu[0].Color = Color.Red;
menu[0] = new Text("Play", font);
menu[0].Position = new Vector2f(width / 2.0f, height / 2.0f);
我很确定它的位置很好,因为我加载的纹理发生了类似的问题,我已经通过将纹理目录移动到其他地方来解决它。代码或任何其他想法可能有问题吗?