Пример #1
0
        public float DrawString(SpriteBatch batch, string text, Vector2 pos, Color color, Vector2 scale, float depth = 0f)
        {
            _fontSystem.Color = color;
            _fontSystem.Scale = scale;

            var result = _fontSystem.DrawText(batch, pos.X, pos.Y, text, depth);

            _fontSystem.Scale = Vector2.One;

            return(result);
        }
 public float DrawString(IFontStashRenderer renderer, string text, Vector2 pos, Color color, float depth = 0f)
 {
     return(_fontSystem.DrawText(renderer, pos.X, pos.Y, text, color, depth));
 }