Fixed text width,notice that textExtents only support font.PLAIN.