📅  最后修改于: 2022-03-11 14:48:53.844000             🧑  作者: Mango
// In the LoadContent() method:
SpriteFont font = Content.Load("sprite font location");
// In the Draw() method:
spriteBatch.Begin();
spriteBatch.DrawString(font, "Hello World!", position, color);
spriteBatch.End();