make sure the font path is shorter than the buffer