Content Pipeline:

- Fixed a Bug in FontDescriptionImporter
- Removed Debugger.Break() in XmlImporter
This commit is contained in:
SND\eagleeyestudios_cp 2012-11-01 21:49:26 +00:00 committed by Konstantin Koch
parent 0d3593c223
commit c316436f32
2 changed files with 4 additions and 3 deletions

View File

@ -125,7 +125,7 @@ namespace ANX.Framework.Content.Pipeline.Importer
startElement.Value + " - " + endElement.Value);
}
//add each char from the range to the list
for (var i = startChar; i < endChar - 1; i++)
for (var i = startChar; i < endChar; i++)
{
characters.Add(Convert.ToChar(i));
}
@ -136,7 +136,8 @@ namespace ANX.Framework.Content.Pipeline.Importer
_logger.LogMessage("Import of SpriteFont finished.");
var result = new FontDescription(fontName, fontSize, fontSpacing, fontStyle)
{
Characters = characters
Characters = characters/*,
DefaultCharacter = '*'*/ //Currently disabled because the ContentLoader does not like this (Bad XNB)
};
return result;

View File

@ -85,7 +85,7 @@ namespace ANX.Framework.Content.Pipeline.Importer
}
catch (Exception ex)
{
Debugger.Break(); //Go and check whats wrong
//Debugger.Break(); //Go and check whats wrong
}
}
Type t = Type.GetType(typeString);