Optimized stroked text logic