cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user