5
\$\begingroup\$

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...

\$\endgroup\$
10
\$\begingroup\$

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)

\$\endgroup\$
  • 1
    \$\begingroup\$ Even though you made this answer yourself, you should still remember to mark it as such. :) \$\endgroup\$ – William Mariager Mar 27 '15 at 14:33
  • \$\begingroup\$ I had no ideea. Isn't that done automatically? I'm new to stackexchange :) Also, how does marking it change anything? \$\endgroup\$ – NomadHorse2 Mar 27 '15 at 18:53
  • 1
    \$\begingroup\$ It 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. \$\endgroup\$ – William Mariager Mar 28 '15 at 11:18
-2
\$\begingroup\$

Incidentally, if you use MonoGame 3.3, you can just add a new SpriteFont to the MonoGame Pipeline and it works automatically :)

\$\endgroup\$
  • \$\begingroup\$ MonoGame 3.3 is exactly what this question is asking about, perhaps you should explain these steps more. \$\endgroup\$ – MichaelHouse Apr 8 '15 at 23:34
  • \$\begingroup\$ Oops, it seems you're correct, my mistake. It looks like the marked answer above actually outlines it perfectly :) \$\endgroup\$ – user2476905 Apr 9 '15 at 23:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.