mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-25 14:08:34 +01:00
15 lines
No EOL
468 B
C#
15 lines
No EOL
468 B
C#
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using MLEM.Extensions;
|
|
using MonoGame.Extended.BitmapFonts;
|
|
|
|
namespace MLEM.Extended.Extensions {
|
|
public static class BitmapFontExtensions {
|
|
|
|
public static string SplitString(this BitmapFont font, string text, float width, float scale) {
|
|
return SpriteFontExtensions.SplitString(s => font.MeasureString(s).Width, text, width, scale);
|
|
}
|
|
|
|
}
|
|
} |