diff options
author | Pixel <pixel@nobis-crew.org> | 2010-06-10 15:30:25 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2010-06-10 15:30:25 -0700 |
commit | dd86dcc28629225881de61f63394132eb0cb0e2a (patch) | |
tree | 26bcfb8c0e64117e9a4489c308adf9ca7940319f /script-editor/FontFile.cs | |
parent | c07307cb655e8449bb05052ec28993857ac27836 (diff) | |
parent | bb7745a988db1c4be68e4b12b51e16a7e5a21f8e (diff) |
Merge branch 'master' of ssh+git://git.grumpycoder.net/pub/repo.git/VP-hack
Diffstat (limited to 'script-editor/FontFile.cs')
-rw-r--r-- | script-editor/FontFile.cs | 6 |
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++) { |