/// <summary>
 /// Creates a new instance of <see cref="FontTextureGenerator"/>.
 /// </summary>
 /// <param name="canvasSize">The size of the canvas to draw on.</param>
 public FontTextureGenerator(Size canvasSize)
 {
     CanvasSize = canvasSize;
     _binPacker = new BinPacker(canvasSize);
 }
 /// <summary>
 /// Creates a new instance of <see cref="FontTextureGenerator"/>.
 /// </summary>
 /// <param name="canvasSize">The size of the canvas to draw on.</param>
 /// <param name="margin">The margin to the top and left side of each texture.</param>
 public FontTextureGenerator(Size canvasSize, int margin = 1)
 {
     CanvasSize = canvasSize;
     _binPacker = new BinPacker(canvasSize, margin);
 }