title: I can't figure out std::string substr
body: <p>my font filename extractor is not working...
  filename_: <code>".\\Source\\AlexBrush-Regular.ttf"</code>
  and I'm using</p>
  
  <pre><code>sprintf(buffer, "\nFont Name:%s \nNumber of errors: %d\nAscent %d High +%d Descent -%d Low -%d!", 
                  font-&gt;filename_.substr( font-&gt;filename_.find_last_of('\\'), font-&gt;filename_.length() ), hitcount, Ascent, Descent, High, Low);
  </code></pre>
  
  <p>my ouput looks like
  buffer  0x008aecbc <code>"\nFont Name:ÀëŠ \nNumber of errors: 12688232\nAscent -858993460 High +-858993460 Descent --858993460 Low -22!"</code></p>