Is there any way to have fonts in game without making a separate Content Project and adding a .spritefont file in the new 3.3 Monogame? You can now load other resources directly from the Content folder but not spritefonts...
Asked
Active
Viewed 5,247 times
2 Answers
10
I found out that the Content.mcgb is actually a little GUI helper and you can generate and easily load a .spritefont file with it.
Steps:
1.Load the GUI app by double clicking the "Content.mcgb" file in the "Content" folder
2.Go to Edit -> New Item... -> Choose SpriteFont and give it a name -> Hit "Ok"
3.Go to Build -> Build (or hit F6) - You should get some info on the font getting built
4.Load the .spritefont file in VS (Right-click the projct -> Add -> Existing Item -> Choose the newly created file)

NomadHorse2
- 151
- 1
- 6
-
1Even though you made this answer yourself, you should still remember to mark it as such. :) – William Mar 27 '15 at 14:33
-
I had no ideea. Isn't that done automatically? I'm new to stackexchange :) Also, how does marking it change anything? – NomadHorse2 Mar 27 '15 at 18:53
-
1It isn't done automatically. Below the upvote/downvote arrows there's a button to accept the answer. Marking it means the question has been answered, and when someone comes looking in the future, they'll see the answer that solved your problem right away. – William Mar 28 '15 at 11:18
-2
Incidentally, if you use MonoGame 3.3, you can just add a new SpriteFont to the MonoGame Pipeline and it works automatically :)
-
MonoGame 3.3 is exactly what this question is asking about, perhaps you should explain these steps more. – House Apr 08 '15 at 23:34
-
1Oops, it seems you're correct, my mistake. It looks like the marked answer above actually outlines it perfectly :) – user2476905 Apr 09 '15 at 23:59