summaryrefslogtreecommitdiff
path: root/script-editor/FontFile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'script-editor/FontFile.cs')
-rw-r--r--script-editor/FontFile.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/script-editor/FontFile.cs b/script-editor/FontFile.cs
index 8bbf61e..cc74763 100644
--- a/script-editor/FontFile.cs
+++ b/script-editor/FontFile.cs
@@ -61,7 +61,7 @@ namespace VPScriptEditor
case "Text":
if (attrs[i].Value.Length != 1)
- throw new Exception("Invalid database");
+ throw new Exception("Invalid database, character " + attrs[i].Value + " not supported");
text = attrs[i].Value[0];
break;
@@ -79,8 +79,8 @@ namespace VPScriptEditor
XmlDocument fontXml = new XmlDocument();
fontXml.Load(file);
XmlNodeList fontNode = fontXml.GetElementsByTagName("Symbol");
- glyphs = new Symbol[fontNode.Count + 1];
- bitmaps = new Bitmap[fontNode.Count + 1];
+ glyphs = new Symbol[fontNode.Count];
+ bitmaps = new Bitmap[fontNode.Count];
data = new Dictionary<char, int>();
for (int i = 0; i < fontNode.Count; i++)
{