C# SpriteFont不使用单游戏

C# SpriteFont不使用单游戏,c#,xna,xna-4.0,monogame,spritefont,C#,Xna,Xna 4.0,Monogame,Spritefont,我将内容文件夹中的TopBarFont.spritefont设置为内容,并像所有其他资源一样始终复制到输出目录 我的spritefont文件如下所示 An unhandled exception of type 'System.NotImplementedException' occurred in MonoGame.Framework.dll Additional information: The method or operation is not implemented. 无光开放 3

我将内容文件夹中的TopBarFont.spritefont设置为内容,并像所有其他资源一样始终复制到输出目录

我的spritefont文件如下所示

An unhandled exception of type 'System.NotImplementedException' occurred in MonoGame.Framework.dll Additional information: The method or operation is not implemented.

无光开放
36
0
真的
有规律的
 
~

我看到其他一些帖子只是使用2d纹理并绘制,但没有。。默认情况下,这就是使用DrawString的全部目的。

使用converter将.SpriteFont转换为.xnb

尝试将TopBarFont.xnb添加到相同的文件夹中。SpriteFontMonoGame有一个内容生成器工具,您应该使用它。很遗憾,我们必须使用第三方工具,但它可以正常工作。这才是最重要的。谢谢
An unhandled exception of type 'System.NotImplementedException' occurred in MonoGame.Framework.dll Additional information: The method or operation is not implemented.
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
    <Asset Type="Graphics:FontDescription">
        <FontName>Open Sans Light</FontName>
        <Size>36</Size>
        <Spacing>0</Spacing>
        <UseKerning>true</UseKerning>
        <Style>Regular</Style>
        <CharacterRegions>
            <CharacterRegion>
                <Start>&#32;</Start>
                <End>&#126;</End>
            </CharacterRegion>
        </CharacterRegions>
    </Asset>
</XnaContent>