<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - LibreOffice text blurry on Retina displays on macOS 11"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138122#c87">Comment # 87</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - LibreOffice text blurry on Retina displays on macOS 11"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138122">bug 138122</a>
from <span class="vcard"><a class="email" href="mailto:tml@iki.fi" title="Tor Lillqvist <tml@iki.fi>"> <span class="fn">Tor Lillqvist</span></a>
</span></b>
<pre>Using ideas from the experimentation patch mentioned in <a href="show_bug.cgi?id=138122#c39">comment #39</a>, I think I
see a clear improvement when using some combination of the tweaks from that,
like:
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 704bba1fae9c..23f93aeb9272 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -450,7 +450,16 @@ void AquaSalGraphics::DrawTextLayout(const
GenericSalLayout& rLayout)
// The view is vertically flipped (no idea why), flip it back.
CGContextScaleCTM(maContextHolder.get(), 1.0, -1.0);
- CGContextSetShouldAntialias(maContextHolder.get(), !mbNonAntialiasedText);
+
+ CGContextSetShouldAntialias(maContextHolder.get(), true);
+ CGContextSetAllowsAntialiasing(maContextHolder.get(), true);
+ CGContextSetAllowsFontSmoothing(maContextHolder.get(), false);
+ CGContextSetShouldSmoothFonts(maContextHolder.get(), false);
+ CGContextSetAllowsFontSubpixelPositioning(maContextHolder.get(), true);
+ CGContextSetShouldSubpixelPositionFonts(maContextHolder.get(), true);
+ CGContextSetAllowsFontSubpixelQuantization(maContextHolder.get(), true);
+ CGContextSetShouldSubpixelQuantizeFonts(maContextHolder.get(), true);
+
CGContextSetFillColor(maContextHolder.get(), maTextColor.AsArray());
if (rStyle.mbFauxBold)
But if I zoom in a lot, I see that the text is still rendered much different
than in NeoOffice, for instance.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>