Questions tagged [spritefont]
47 questions
0
votes
2 answers
Providing canvas2d image tint for Spritefonts
I'm doing Spritefonts and currently implemented tint for it on WebGL!
But on canvas2d i tried to do it via ctx.globalCompositeOperation but it shows following
As you see, Black pixels are also filled...
Here is my code...
var size = 32;
var x =…

Rabios
- 77
- 1
- 7
0
votes
1 answer
Move SpriteBatch to 3D Space Coordinate
I want to draw text and an image on a specific position in 3D Space.
The scene is rendered in 3D and I want to display a rendered 2D Text and an image on a XYZ-Coordinate.
I have the World, View, Projection Matrices from the scene and the…

RonnyCSHARP
- 83
- 9
0
votes
1 answer
Drawing custom sprites onto a button in monogame
I'm using monogame. I want to overlay Text onto one of my button images, but I want to use the image way of drawing;
spriteBatch.Draw(texture, destinationRectangle, sourceRectangle, Color.White);
so that I can control how the text is handled inside…

Darren Bell
- 9
- 1
0
votes
1 answer
Directxtk SpriteFont blurry when not whole number
The text becomes blurry if I use a non whole number for the position of the string. Any ideas what is causing this and how to correct it?
this->pSpriteBatch->Begin();
this->pSpriteFont->DrawString(this->pSpriteBatch, szTempMessage, XMFLOAT2(x, y),…

John
- 5,942
- 3
- 42
- 79
0
votes
1 answer
No option to load a SpriteFont in XNA4 Content project with VS2015
I can't find any option to load a new SpriteFont in the XNA Content project.
This is my screen:
I downloaded the XNA4.0 refresh update for Visual Studio 2015 from here https://mxa.codeplex.com/releases/view/618279
Can anyone help me?

Nomid
- 91
- 8
0
votes
1 answer
Light SpriteFont colors in MonoGame/XNA are low quality
I am creating a game about internet safety but when using SpriteFont the light colours such as white or light blue come up really grainy and low quality. Black on the other hand is really clear. I was wondering if there is a way to fix this?
Image…

OpalRing
- 15
- 1
- 4
0
votes
1 answer
Monogame windows - make a textview scrollable
I am trying to do an appication in monogame windows. I have a long text to be displayed on screen. I tried to render it on screen using spriteBatch.Drawstring, was succesful to an extent. But, the text did not fit into a required area. I had…

jincy abraham
- 579
- 2
- 9
- 21
0
votes
1 answer
What is a .Spritefont file, and how do I create it?
I have looked for them for half an hour. I have a .TFF font, I have a .png spritesheet, I have everything I need to be able to write down any sort of string, but apparently I need to load content in XNA as userfont = Content.Load
And…

Zee
- 824
- 11
- 25
0
votes
2 answers
XNA/MonoGame publishing game, could not load SpriteFont as non content file
I have finished making a game; however, when I try to publish it. It publishes fine but when launching the application it crashes
SpriteFont
It says that it could not find MyFont.xnb (which is a SpriteFont in the content folder)
When I go to my…

Technocrat
- 334
- 1
- 4
- 15
0
votes
1 answer
Share surface between D2D, DX10, DX11
I need to share surface between direct 3d 10.1 device and direct 3d 11 device to permit my application to render Sprite sharing surface between diirect 2d and direct 3d 10.1.
I've read this topic…

ThomasSquall
- 644
- 6
- 21
0
votes
1 answer
Cannot find SpriteFont template in Xna
I'm trying to add a SpriteFont into my Content's folder for my Xna project, but I am unable to find the Sprite Font template and I'm now stuck.
I used MonoGame to get Xna working on VisualStudio 2012 and so far I have seen no differences.
What it…

Daniel Jones
- 115
- 1
- 3
- 10
0
votes
1 answer
gameTime.ElapsedGameTime.Seconds not updating
I just found something that caught my interest. See, I usually do my "timers" with an int Time = Duration; and in my update it would go Time -= gameTime.ElapsedGameTime.MilliSeconds;. However, I just tried to do it with…

Neophyte
- 55
- 6
0
votes
1 answer
Invalid Parameter when creating a SpriteFont
I am programming in C++ and am using the SpriteFont tools that comes with DirectXTK. I declared a variable in my class thus:
std::unique_ptr m_SpriteFont;
I initialized it like this:
m_SpriteFont =…

l3utterfly
- 2,106
- 4
- 32
- 58
0
votes
2 answers
XNA ContentLoadException from array given by Directory.GetFiles when file is clearly there
First I would like to state that this is not a Content.RootDirectory = "Content"; problem. I've tried this with and without that line of code. I have a class called FileFactory that has three dictionaries. One for textures, one for sounds, and one…

Bagofsheep
- 159
- 1
- 1
- 8
0
votes
1 answer
XNA Nuclex Spritefont Framework and Spritefont Textures
The way XNA 4.0 render fonts on the screen is a step back from XNA 3.1, to say the least. Thankfully, using the Nuclex Framework has solved this problem. However, this is for spritefont files.
Is there a way Nuclex can support spritefont…

Jackie Williams Jr
- 11
- 2