我正在尝试在 Monogame 程序中绘制文本。我想使用 SpriteFont 来执行此操作,但在尝试加载 SpriteFont 时出现以下错误。
//Here I try to load the SpriteFont
//It is kept in the "Content/fonts" folder, with "Content" as the Content.RootDirectory
Font = Content.Load<SpriteFont>("fonts/SpriteFont1");
//I then get this error
An unhandled exception of type 'System.NotImplementedException' occurred in MonoGame.Framework.dll
Additional information: The method or operation is not implemented.
SpriteFont1 构建操作设置为“内容”,复制到输出目录为“始终复制”。SpriteFont1.xnb 文件位于 Content 文件夹中,具有相同的设置。如何修复错误以便加载 SpriteFont?