From de123e1fcfddb325ab44d7208685849fe04bd6e4 Mon Sep 17 00:00:00 2001 From: XTigerHyperX Date: Mon, 8 Nov 2021 21:14:45 +0100 Subject: [PATCH] safe margin --- FModel/Creator/Bases/FN/BaseIconStats.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FModel/Creator/Bases/FN/BaseIconStats.cs b/FModel/Creator/Bases/FN/BaseIconStats.cs index ca77ac62..706d0dd0 100644 --- a/FModel/Creator/Bases/FN/BaseIconStats.cs +++ b/FModel/Creator/Bases/FN/BaseIconStats.cs @@ -255,7 +255,7 @@ namespace FModel.Creator.Bases.FN public void Draw(SKCanvas c, SKColor sliderColor, int width, int height, ref float y) { - while (_statPaint.MeasureText(_statName) > height * 2) + while (_statPaint.MeasureText(_statName) > height * 2 - 40) { _statPaint.TextSize -= 1; }