why need to xadvance * 10.0f? glyph->xadv = (short)(scale * advance * 10.0f) *x += (int)(glyph->xadv / 10.0f + 0.5f);