"o">.</span><span class="nf">setShouldSmoothFonts</span><span class="p">(</span><span class="kc">false</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></li>
<li><p>For custom <code>NSButton</code>&lsquo;s:</p>

<p>This is more tricky, as you will need to override private methods. If you are distributing your app on the Mac App Stor