This commit is contained in:
maxwes08
2026-05-25 09:44:23 +02:00
parent e1778fb446
commit 38db4ce6b9
7 changed files with 13 additions and 10 deletions

View File

@@ -3,12 +3,9 @@ public static class CharWidth
private static readonly Dictionary<char, float> CharWidths = new Dictionary<char, float>();
static CharWidth()
{
// Default for all ASCII
for (char c = (char)32; c <= (char)126; c++)
{ for (char c = (char)32; c <= (char)126; c++)
CharWidths[c] = 5.0f;
// Override exceptions
CharWidths[' '] = 3.0f;
CharWidths['!'] = 1.0f;
CharWidths['"'] = 3.0f;