v0.1.18: adjusted wordSpacing and spaceWidth calculation