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

--- Comment #8 from [email protected] ---
It seems LibreOffice already has code for this.

The fix is to use GetOrCalculateAverageFontWidth();

Hence:
         if (aFontSize.Width() == 0)
                aFontSize.setWidth(basegfx::fround<tools::Long>(
                    aTmp.GetOrCalculateAverageFontWidth() * fTestWidthScale));

I have pushed a patch to gerrit

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to