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

--- Comment #6 from Ilhan Yesil <[email protected]> ---
in drawinglayer/source/primitive2d/textlayoutdevice.cxx
in function: vcl::Font getVclFontFromFontAttribute

if I comment out the lines:

 #ifdef _WIN32
             // for WIN32 systems, correct the FontWidth if FontScaling is used
             if(bFontIsScaled && nHeight > 0)
             {
                 const FontMetric
aUnscaledFontMetric(Application::GetDefaultDevice()->GetFontMetric(aRetval));

                 if(aUnscaledFontMetric.GetAverageFontWidth() > 0)
                 {
                    const double fScaleFactor(static_cast<double>(nWidth) /
static_cast<double>(nHeight));
                    const sal_uInt32
nScaledWidth(basegfx::fround(static_cast<double>(aUnscaledFontMetric.GetAverageFontWidth())
* fScaleFactor));
                    aRetval.SetAverageFontWidth(nScaledWidth);
                 }
             }
 #endif

then the output under Windows is no longer wrong. 

I haven't see side effects so far, if I comment out these lines. Maybe this is
an approach to solve this, somehow it has to do with the scale factor of fonts
under windows.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to