improvements

This commit is contained in:
Eduardo Bart
2011-05-21 16:10:07 -03:00
parent f5a15939b2
commit 46485d0d76
5 changed files with 36 additions and 42 deletions

View File

@@ -102,7 +102,7 @@ bool Font::load(const std::string& file)
// read custom widths
if(doc->hasNode("glyph widths")) {
std::map<int, int> glyphWidths;
(*(doc->at("glyph widths"))) >> glyphWidths;
doc->readAt("glyph widths", &glyphWidths);
foreach(const auto& pair, glyphWidths)
m_glyphsSize[pair.first].setWidth(pair.second);
}