[Libreoffice-bugs] [Bug 136633] Text in LO brand logo rendered ugly when anti-aliasing is disabled

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 19 14:55:29 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=136633

--- Comment #5 from Heiko Tietze <heiko.tietze at documentfoundation.org> ---
https://opengrok.libreoffice.org/xref/core/cui/source/dialogs/about.cxx?r=14cfff50

93    const tools::Long
nWidth(m_pCopyrightLabel->get_preferred_size().getWidth());
94    BitmapEx aBackgroundBitmap;
96    if (SfxApplication::loadBrandSvg(Application::GetSettings()
97                                             .GetStyleSettings()
98                                             .GetDialogColor()
99                                             .IsDark()
100                                         ? "shell/logo_inverted"
101                                         : "shell/logo",
102                                     aBackgroundBitmap, nWidth * 0.8)) {
103      ScopedVclPtr<VirtualDevice> m_pVirDev =
104          m_pBrandImage->create_virtual_device();
105      m_pVirDev->SetOutputSizePixel(aBackgroundBitmap.GetSizePixel());
106      m_pVirDev->DrawBitmapEx(Point(0, 0), aBackgroundBitmap);
107      m_pBrandImage->set_image(m_pVirDev.get());
108      m_pVirDev.disposeAndClear();

It says: Load the SVG and size it to 80% of the length of the copyright text.
Then draw this image exactly as it to the provided image canvas.

For me on Linux it's crisp with or without antialiasing.

-- 
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/20210819/2c1e444e/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list