Bug 130419 - Interrupt underlining for characters with descenders
Summary: Interrupt underlining for characters with descenders
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.8.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 103995 (view as bug list)
Depends on:
Blocks: Font-Rendering Character-Dialog
  Show dependency treegraph
 
Reported: 2020-02-04 10:50 UTC by Christoph Bartz
Modified: 2022-09-30 16:45 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example - way of underlining text (3.42 KB, image/png)
2020-02-04 10:52 UTC, Christoph Bartz
Details
Example - way of underlining text (2) (767 bytes, image/png)
2020-02-04 10:53 UTC, Christoph Bartz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Bartz 2020-02-04 10:50:43 UTC
Description:
(Note: This is not a bug, it is a request for an enhancement.)

Hi, 
I have a request: 
My Browser "Mozilla Firefox" has a really nice way to underline the words: 
The lines do not cross the descenders of the letters, but have small gaps. The underscores are shortly interrupted at this point, e.g. in the case of g, q, f or the Slash "/". 

That's really cool, and typographically more pleasant. Especially with hyperlinks, which are usually typographically underlined, it looks good! 
Would it be possible to include this feature in LibreOffice Writer? 

I have attached two screenshots as examples (PNG).

Actual Results:
   

Expected Results:
   


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Christoph Bartz 2020-02-04 10:52:33 UTC
Created attachment 157635 [details]
Example - way of underlining text

How Mozilla Firefox is underlining text.
Comment 2 Christoph Bartz 2020-02-04 10:53:22 UTC
Created attachment 157636 [details]
Example - way of underlining text (2)

Text underline - example 2
Comment 3 Dieter 2020-02-04 13:42:20 UTC
I agree (especially for a font in big size)

Could be an option in Font effect tab of the character dialog.
Comment 4 Heiko Tietze 2020-02-04 14:49:26 UTC
What's wrong with the Character Style "Internet Link" resp. "Visited Internet Link"? In case you missed those I'd close the request as WFM.
Comment 5 Dieter 2020-02-04 14:54:05 UTC
(In reply to Heiko Tietze from comment #4)
> What's wrong with the Character Style "Internet Link" resp. "Visited
> Internet Link"? In case you missed those I'd close the request as WFM.

Please compare with examples in comment 1 or 2. It's not the same.
Comment 6 Heiko Tietze 2020-02-04 15:23:13 UTC
So it's the descenders clashing with the underline you mean (for example discussed here https://www.indezine.com/products/powerpoint/learn/textandfonts/stop-underlining-your-descenders.html, known in CSS as text-decoration-skip-ink https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-skip-ink). If so, it's not a style but a special function that removes the underline from characters with descenders or maybe some property of the font (not sure that something like underline thickness of zero works).
Comment 7 Dieter 2020-02-05 04:34:25 UTC
(In reply to Heiko Tietze from comment #6)
> So it's the descenders clashing with the underline you mean

Yes

> If so, it's not a style but a special function that removes the underline
> from characters with descenders or maybe some property of the font (not sure
> that something like underline thickness of zero works).

But even it is not a style frome a technical point of view, I assume, that most users (for example Christoph and I) will see this as a style. This should be taken into account, if LO decides to implement it.
Comment 8 Christoph Bartz 2020-02-06 09:42:30 UTC
(In reply to Heiko Tietze from comment #6)
> So it's the descenders clashing with the underline you mean 

Yes that's it! :-) 

Of course it is not a question of the style sheet. 
I don't know what the best technical solution would be. 
Maybe a tickbox in the menu "Character | Font Effects" would be useful. Something like "Do not cross over a glyph". 

But it would be pretty cool if LO had a function of this kind, because other typographic functions (e.g. OpenType functions) are already supported. (And this is one of LO's strengths)
Comment 9 V Stuart Foote 2020-02-06 14:26:32 UTC
I don't know how Mozilla folks implement, but the CSS 'text-decoration-skip-ink' attribute looks to be the effect.

+1 for an implementation to integrate (supplement) our support for ODF defined:

svg:underline-position
svg:underline-width
svg:underline-thickness
svg:underline-type

svg:overline-position
svg:overline-width
svg:overline-thickness
svg:overline-type


implemented in edit engine. Probably as a 'type' the "skip-ink" would need ODF extension--so we could hold with the document. 

But this might also be opportunity to pull 'width', 'thickness' and 'position' for overline, underline and strikethrough from the design metrics of the selected font.
Comment 10 Heiko Tietze 2021-06-21 08:27:00 UTC
Let's do it, presumably it can be stored in ODF (otherwise adding makes sense). Would add this as an option next to Text Decoration: Underline similar to "Individual words".
Comment 11 ⁨خالد حسني⁩ 2022-09-30 16:45:03 UTC
*** Bug 103995 has been marked as a duplicate of this bug. ***