mirror of
https://github.com/edubart/otclient.git
synced 2025-10-21 23:05:54 +02:00
improvements
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user