https://bugs.documentfoundation.org/show_bug.cgi?id=146712
--- Comment #17 from [email protected] --- Still reproducible in 26.8.2.2 (Windows 11, display scaling 100%). The 1007 x 1042 px square in the description is the same factor we measure: 0.966. Two findings that may help fix it: 1. The distortion depends on the document's default font. The attached circle.ods and circle-calibri.ods are identical except for the font of the Default cell style. At 100% zoom the same 200 x 200 px circle picture is drawn: - 193 x 200 px with LibreOffice's own default font (Liberation Sans 10 pt): narrower than tall; - 207 x 200 px with Calibri 11 pt: wider than tall. A circle shape of the same size behaves the same (196 x 203 and 209 x 203, including its 3 px line). The screenshot circles-in-calc.png shows the picture itself above both. 2. Where it comes from, as far as we can read the 26.8.2.2 source: - ScDocShell::CalcOutputFactor measures a test string in the Default cell style's font on the reference device and on screen, and keeps the ratio of the two widths. ScViewData::CalcPPT divides only nPPTX by it, and drawing objects inherit that horizontal scale through ScDrawUtil::CalcScale. So every horizontal length (columns, pictures, shapes) is scaled by a text-rendering ratio, and no vertical length is. - Until 7.4, "Use printer metrics for text formatting" set this factor to 1. It was removed in 7.5 (tdf#131136), so users can no longer avoid the distortion. - For .xlsx files the factor is computed before the file is read (the import goes through ImportFrom, which never recomputes it), so pictures in any .xlsx are drawn with the factor of LibreOffice's own default font. A spreadsheet from Excel cannot avoid it. -- You are receiving this mail because: You are the assignee for the bug.
