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

            Bug ID: 172988
           Summary: Monospace Character Scale Width 50%+50% is not 100%
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Monospace Characters are created to occupy exactly the same width.
When you scale any width of Monospace Characters then 50% + 50% must exactly
match 100%. Same goes for any combination, where the percentages add up. The
completely ignores decimals or otherwise, my goal is only that 49% + 51% =
100%, etc.   
But it doesn't exactly match (anymore), not even 50% + 50% is 100%.

Steps to Reproduce:
This issue started with me noticing the 16.2 update pushed not long ago on my
PC.
1. New LibreOffice Writer Document and Zoom at least 200%-300%.
2. Font: Liberation Mono - 10 point size
3. Change Line spacing to "Proportional" 96%, this pushes lines far enough
together so pipe elements don't show gaps (98% should be enough also).
4. Type "│                │" + <Enter>
5. On new line Type "│9  12  11  12  8 11 │" + <Enter>
6. Now scale the double digits to 50% width (Format > Character > Position >
Scale Width), so they take up same space as single digits. 
7. Also make double digits Bold, to be more clear, but this is not particularly
important, since it has no effect on the problem.
8. On new line Type "│                │"  + <Enter>
9. Visually inspect "│" must align perfectly, but they no longer do.
This used to align exactly and the math has to fit. 50%+50% must be exactly
100%.

The problem becomes much more visible when you copy/paste the 3 parts ""
content on the 3 lines a couple of times further to the right.

Likes this:
"│                │                │                │                │         
      │"
"│9  12  11  12  8 11 │9  12  11  12  8 11 │9  12  11  12  8 11 │9  12  11  12 
8 11 │9  12  11  12  8 11 │"
"│                │                │                │                │         
      │"

It shows that 50%+50% no longer is exactly 100%, it's very close, but needs to
be exactly.

The issue is also in generated .pdf files, so this really needs fixing, since
it's not only a visual bug, but a structural one.
I will go back to older versions to see when it still worked.

Actual Results:
The "│9  12  11  12  8 11 │" with double digits width scaled 50%, is about
0.25% off pr. double digit pair. So if you instead scaled one double digit 51%,
then the "│" will align almost perfectly. This leads me to believe the 50% is
about 0.25% off. The problem might even be related to Font sizes as well, so
the scaling will be more off by font size.

Expected Results:
50% + 50% Monospace Character Scale Width should exactly match 100% Monospace
Character.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.8.0.1 (X86_64)
Build ID: 2577b8a8e9a5d3f37124fb86a89387e3807953a7
CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan;
VCL: win
Locale: en-US (en_DK); UI: en-GB
Calc: threaded

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

Reply via email to