><span class="p">?</span><span class="o">.</span><span class="nf">setShouldSmoothFonts</span><span class="p">(</span><span class="kc">true</span><span class="p">)</span>

<span class="c1">// draw text...</span>

<span class="n">context</span><span class="p">?</span><span class="o">.</span><span class="nf">restoreGState</span><span class="p">()</span>
</code></pre>

<p>As a last solution - if you really can&rsquo;t draw a background color - you can disable font smoothing which can slightly improve text rende