I am working on a Windows game for my university project. In this project I am using a custom TrueType font which is not installed on any university computers. For submission my game is required to run in debug mode and a demonstration given. Therefore is there any possible way to read the font from within my project rather than installing the font on each computer that the project will be viewed on.
I have managed to resolve this issue by building the XNB file for the SpriteFont on a computer which has the font installed, and then importing that into my project on a computer without the font installed. I then removed the original SpriteFont file and set the files Build Action to “Content” and Copy to Output Directory to “Copy if newer” for the imported XNB file.