diff --git a/BeefLibs/Beefy2D/src/gfx/Font.bf b/BeefLibs/Beefy2D/src/gfx/Font.bf index fa97a2d0..82fb96ca 100644 --- a/BeefLibs/Beefy2D/src/gfx/Font.bf +++ b/BeefLibs/Beefy2D/src/gfx/Font.bf @@ -130,6 +130,7 @@ namespace Beefy.gfx List mAlternates; MarkRefData mMarkRefData ~ delete _; float[] mLoKerningTable; + public StringView mEllipsis = "..."; public this() { @@ -868,14 +869,14 @@ namespace Beefy.gfx if (stringEndMode == FontOverflowMode.Ellipsis) { - float ellipsisLen = GetWidth("..."); + float ellipsisLen = GetWidth(mEllipsis); if (width < ellipsisLen) return 0; // Don't draw at all if we don't even have enough space for the ellipsis int strLen = GetCharCountToLength(workingStr, width - ellipsisLen); tempStr = scope:: String(Math.Min(strLen, 128)); tempStr.Append(theString, 0, strLen); - tempStr.Append("..."); + tempStr.Append(mEllipsis); workingStr = tempStr; aWidth = GetWidth(workingStr); break;