[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #10 from Radu Rendec  ---
Thanks for the detailed input! You are right, in 7.4.3.2 there is no
discrepancy between gtk and gen. I was testing 7.4.0.0.alpha1 when I noticed
the discrepancy.

Is there an option (setting?) to revert to the old behavior *locally?* I
understand why the change was done, but only slight hinting (or no hinting)
makes my eyes bleed, and I'm probably not alone. I am ready to accept whatever
would presumably break because of full hinting. To be honest, I have lived with
full hinting since before LibreOffice was forked from OpenOffice, and haven't
had any issues. So, from my perspective, this is a regression that was
introduced to fix a problem that didn't exist. And again, I totally understand
this is just *my own* perspective, and what works for me doesn't necessarily
work for everybody else. I really wish there was a way to tweak it. Thanks!

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

V Stuart Foote  changed:

   What|Removed |Added

 Resolution|--- |NOTABUG
 Status|UNCONFIRMED |RESOLVED
 CC||vsfo...@libreoffice.org
   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=15
   ||0507

--- Comment #9 from V Stuart Foote  ---
So, by design and => NAB

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #8 from Caolán McNamara  ---
Created attachment 183830
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183830=edit
better zoom

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #7 from Caolán McNamara  ---
Created attachment 183829
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183829=edit
zoomed in DejaVu Sans gen above gtk below

Yeah, we're explicitly forcing just slight hinting if hinting is enabled. The
positions for determining line breaks aren't affected by whatever hinting mode
is done, layout is done at printer resolutions where hinting doesn't matter
anyway. But with full hinting we can't guarantee that the smaller font used on
the lower resolution screen will fit into the space the text in the larger
print resolution font occupied when scaled down to the screen resolution. Or at
least that's the working assumption. So light/slight/vertical-hinting-only is
deliberate.

In LibreOffice 7.4 the various stuff described in this presentation:
https://events.documentfoundation.org/media/libreoffice-conference-2022/submissions/B87ZBP/resources/LibreOfficeCon-2022-ResolutionI_2TieDK1.odp
is only applied for the main writer window so there indeed is a discrepancy
with the preview in the dialog. In 7.5 the preview matches.

I'm surprised to hear that gen vs gtk makes a difference. We render with the
same code by default and with the same settings. Locally here, as seen in this
screenshot, I get the same pixels for gtk and gen. A difference there in
7.4.3.2 is surprising? Was there a difference with gen in 7.4.3.2 or was it an
earlier 7.4 version where there might have been a discrepancy in settings?

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-27 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #6 from Caolán McNamara  ---
Created attachment 183828
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183828=edit
sample ~/.config/fontconfig/fonts.conf

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-26 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #5 from Radu Rendec  ---
I agree, you definitely do not want the document to re-flow due to changes in
hinting mode. However, hinting should only affect kerning, not glyph advances.
In other words, it should not cause the document to re-flow.

As always with full hinting, I am willing to sacrifice kerning for glyph
aspect. I totally understand you cannot have both.

In the meantime, I tried to start LibreOffice with the SAL_USE_VCLPLUGIN
environment variable set to "gen", as suggested here:
https://wiki.documentfoundation.org/QA/FirstSteps#Rendering_issues_specific_to_Linux.
The UI is messed up (which is expected), but font hinting inside the document
view works as expected.

I'm not sure if it's relevant, but my desktop environment is MATE.

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-26 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

خالد حسني  changed:

   What|Removed |Added

 CC||caol...@redhat.com

--- Comment #4 from خالد حسني  ---
I believe this is intentional because strong hinting modes change glyph
advances and we use unhinted glyph advances in text layout so that document
does not re-flow due changes in hinting mode, so both are incompatible.

CC’ing Caolán McNamara for a definitive answer.

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-26 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #3 from Radu Rendec  ---
Created attachment 183819
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183819=edit
Screenshot including both the document rendering and the preview in font
properties

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-26 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #2 from Radu Rendec  ---
Created attachment 183818
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183818=edit
DejaVu Sans font rendering in LibreOffice 7.4

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

[Libreoffice-bugs] [Bug 152239] Font hinting does not work as expected inside document view

2022-11-26 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=152239

--- Comment #1 from Radu Rendec  ---
Created attachment 183817
  --> https://bugs.documentfoundation.org/attachment.cgi?id=183817=edit
DejaVu Sans font rendering in LibreOffice 7.3

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