BlizzCrafter / MonoGame.Forms

MonoGame.Forms is the easiest way of integrating a MonoGame render window into your Windows Forms project. It should make your life much easier, when you want to create your own editor environment.
Other
287 stars 28 forks source link

How do I create a spritefont? #32

Closed jasons-codes closed 4 years ago

jasons-codes commented 4 years ago

How to create spritefont in MonoGame is explained, but I am not sure how to create spritefont in MonoGame.Forms.

However, the current version of MonoGame is .NET Standard 2.0, so the installation was skipped. I am only using MonoGame.Forms and I would like to know how to create spritefont at this time.

My purpose is to adjust the font size, and I only need to support basic English ASCII for arial, which is the default font of Windows operating system.

I also tried printing the built-in Editor.font by scaling, but the output was not good.

BlizzCrafter commented 4 years ago

It works the same as in MonoGame. You need to have the spritefont compiled to the xnb format. After that you can load it like any other content file with the content manager.

jasons-codes commented 4 years ago

Thanks to it I applied it correctly. Thanks for the answer!