Questions tagged [spritefont]
47 questions
14
votes
2 answers
Monogame rendering text using Graphics.DrawString (instead of SpriteBatch.DrawString)
Is there any downside to using Graphics.DrawString to render a (rather static) bunch of text to an offscreen bitmap, convert it to a Texture2D once, and then simply call SpriteBatch.Draw, instead of using the content pipeline and rendering text…

Lou
- 4,244
- 3
- 33
- 72
5
votes
1 answer
Blurry SpriteFont on monogame (Win8)
i have a really weird problem, i'm trying to print a simple spritefont on screen but the sprite is getting really blurry...
I have loaded the spritefont from VS 2010 using content pipeline to form the xnb file then load it to VS2012 under…

Heavy_Bullets
- 518
- 1
- 4
- 13
5
votes
3 answers
How do I implement word wrap?
XNA has Spritefont class, which has a MeasureString method, which can return the Width and Height of a string. I'm trying to understand how to create a method that will efficiently return a string with Environment.Newline inserted in the right…

user1306322
- 8,561
- 18
- 61
- 122
5
votes
1 answer
How to draw special characters in XNA?
I want to draw special characters like: "π,Ω,θ,ξ" in XNA by using method
SpriteBatch.DrawString(), but I get an exception saying those characters aren't available in the SpriteFont file. Is there any solution for this?

HaiTrieu
- 196
- 2
- 10
3
votes
1 answer
Adding Special Characters to SpriteFont
I am trying to add the arrow keys ►, ◄, ▲, ▼ to my spritefont. They are Alt16, Alt17, Alt30, Alt31.
Here is what I am trying to do.
…

deathismyfriend
- 2,182
- 2
- 18
- 25
3
votes
1 answer
How to edit a compiled spritefont?
How do I edit a compiled spritefont? I'd like to change the kerning of some characters, erase a pixel or two, change aliasing, but I couldn't find any official tools that are still supported or are widely known.
If there is no way (or if it's too…

user1306322
- 8,561
- 18
- 61
- 122
2
votes
1 answer
SpriteFont not working with MonoGame
font = Content.Load("TopBarFont");
For whatever reason no matter what happens, or what I change, I always get this error.
An unhandled exception of type 'System.NotImplementedException' occurred in MonoGame.Framework.dll Additional…
user3967379
2
votes
2 answers
Error - SpriteFont not implemented
I'm trying to draw text in a Monogame program. I want to use a SpriteFont to do it, but I get the following error when trying to load the SpriteFont.
//Here I try to load the SpriteFont
//It is kept in the "Content/fonts" folder, with "Content" as…

Ben
- 1,299
- 3
- 17
- 37
2
votes
1 answer
XNA - Newly Installed Font not working?
So recently I installed a new font (.ttf) to my computer so that I can utilize it in my XNA game. It is the proper type of font, and I am spelling it correctly, but XNA cannot find it. Any ideas on what may be causing this?
This is the error: The…

TheQuantumBros
- 308
- 3
- 4
- 17
2
votes
1 answer
Timer drawing on top of itself, Not clearing
Interesting problem! Basically I have a timer for my UI that counts down from 99. Everything works fine save for the fact its drawing the new time on top of the old time. (The previous time is not clearing) There is a clear happening within the…

EmericanFlow
- 21
- 2
2
votes
1 answer
Use TTF fonts in windows phone xna games
I used a TTF font installed in my pc in a windows phone xna game.(as this)
As the font is already installed in pc, it works perfectly on the emulator.
As I didn't import the font in to the project, I am not quite sure will it work on devices.
Can…

Thushara Sampath
- 33
- 5
2
votes
1 answer
How do I create a bitmap image as spritefont with multiple character regions?
How do I create a bitmap font image that contains characters from multiple regions and is correctly interpreted by XNA content pipeline?
I want to add some special characters to my bitmap font image, but I don't know how to do it correctly.
UPD: I…

user1306322
- 8,561
- 18
- 61
- 122
1
vote
1 answer
XNA C# HUD SpriteFont
I added a SpriteFont to my HUD and this is what I get:
http://i557.photobucket.com/albums/ss13/KookehMonsters/Dev/Untitled-1.png
All those white spots are from my camera panning and the text following along.
What's going on?
Label…

KeyHeart
- 163
- 2
- 6
- 17
1
vote
1 answer
How do I compile a Spritefont file into an XNB file?
So I've very recently started trying to program a game with a friend of mine. I found some well made tutorials on FNA and I've been using that and everything's worked great so far, except this one thing. I cannot for the life of me figure out how to…

Quirky View
- 13
- 5
1
vote
2 answers
SpriteFont error in monogame on macOS "Microsoft.XNA.Framework.Content.ContentLoadException has been thrown The content file was not found."
I am trying to follow tutorials on monogame. using Xamarin studio 6.3 and Monogame content pipeline tool 3.6.
The error "Microsoft.XNA.Framework.Content.ContentLoadException has been thrown The content file was not found." keeps appearing. I have…

Nick Westwood
- 21
- 3