Ejemplo n.º 1
0
        public void DrawString(TextureFont font, string text, Vector2 position, Vector2 scale, Color color)
        {
            this.EnsureDrawStringParams(font, text);

            Size textSize = font.MeasureString(text);

            this.DrawString(font, text, new Rectangle((int)position.X, (int)position.Y, textSize.Width, textSize.Height), scale, color);
        }