add length method
format
fix text rendering with line placement on corners
Merge pull request #2377 from mapycz/3.x-fix-text-on-line-glyph-distance

text rendering with line placement on corners in 3.x