2019-08-06 14:26:51 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text;
|
|
|
|
using Microsoft.Xna.Framework.Graphics;
|
2019-08-25 19:07:45 +02:00
|
|
|
using MLEM.Extensions;
|
2019-08-06 14:26:51 +02:00
|
|
|
using MonoGame.Extended.BitmapFonts;
|
|
|
|
|
|
|
|
namespace MLEM.Extended.Extensions {
|
|
|
|
public static class BitmapFontExtensions {
|
|
|
|
|
2019-08-25 19:07:45 +02:00
|
|
|
public static string SplitString(this BitmapFont font, string text, float width, float scale) {
|
|
|
|
return SpriteFontExtensions.SplitString(s => font.MeasureString(s).Width, text, width, scale);
|
2019-08-06 14:26:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|