Android: Improper text scaling when draw text on canvas
<p>I am drawing formatted text on canvas using <code>DynamicLayout</code>, and I need to implement some sort of zooming. I tried to use <code>canvas.scale(...)</code> for it. But when text contains highlights, text is scaled inconsistent with background, like this:</p>

<p><img src="http://i.stack.imgur.com/EEBUZ.png" alt="scaled text with highlight"></p>

<p>Code which draws text is very simple:</p>

<pre><code>canvas.scale(zoom, zoom);
TextPaint textPaint = new TextPaint();
textPaint.setAntiAlias(true);
DynamicLayout layout = new DynamicLayout(text, textPaint, width,
                            Layout.Alignment.ALIGN_NORMAL, 1.0f, 1.0f, false);
layout.draw(canvas);
</code></pre>

<p>How to make it right way? </p>
