[Libreoffice-bugs] [Bug 138122] LibreOffice text blurry on Retina displays on macOS 11
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Nov 20 08:20:52 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=138122
--- Comment #59 from Emmeran Seehuber <rototor at rototor.de> ---
(In reply to lupurus from comment #57)
> (In reply to Tor Lillqvist from comment #56)
> > Text is drawn in AquaSalGraphics::DrawTextLayout() in vcl/quartz/salgdi.cxx,
> > as far as I recall. Look for the CTFontDrawGlyphs() call.
>
> Thank you. I am kind of frustrated right now, I tried a lot of different
> settings like 'CGContextSetAllowsFontSmoothing' for example... nothing
> helped. I am still wondering: Why is the font in the main view, the status
> bar, the combobox area blurred, but the text in the TOC or where you can
> select the text styles for example or in other menus not? Are they using
> different methods?
I don't think that the problem is related to the way the text is painted, as it
not only affects text, but also lines. Just open a Draw document and do some
diagonal lines. You'll see that they are blurry also, but it's not that visible
and apparent as it is with text.
The AquaSalGraphics have the right scaling for their CGLayer used (i.e. fScale
is 2 for retina in AquaSalGraphics::CheckContext()). For me it seems that all
drawing on this CGLayer is done with a 0.5 scale and the final copy to the
parent CGContext is done with a 2 scale (i.e. to compensate the 0.5 scale while
drawing). I found an Object-C snippet that should allow to export a CGLayer
into a PNG to valid it's contents
(https://stackoverflow.com/questions/525609/use-c-with-cocoa-instead-of-objective-c),
but as I have no clue about Objective-C I can not integrate that. Is there any
other way to inspect whats in a CGLayer?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201120/a8928c82/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list