fix text rendering with line placement on corners