[Solved] Distance between text and underline

Discuss the word processor
Post Reply
Deke
Posts: 3
Joined: Wed Jan 13, 2021 8:23 pm

[Solved] Distance between text and underline

Post by Deke »

Has anyone discovered an easy way to increase the distance between text and its underline to avoid the underline hitting the descenders of certain fonts?
Thanks in advance for any help on this.
Deke
Last edited by Hagar Delest on Fri Jan 15, 2021 8:39 pm, edited 1 time in total.
Reason: tagged solved.
Apache Open Office 4 4.1.7.
Windows !0 Professional
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Distance between text and underline

Post by John_Ha »

There isn't one.

You could try not underlining letters with descenders. It could be done by Find and Replace where you find every lower case " g ", etc, and set them all to "not underlined".

As a new poster you will find much useful information in the Writer FAQ, the Writer Tutorials, the up to date AOO Writer for Students and the Writer User Guide. May I suggest you bookmark the pages.

Press F1 to access the Help screen and search for your problem

The chapter headings in the manual are:

1 - Introducing Writer
2 - Setting up Writer
3 - Working with Text
4 - Formatting Pages
5 - Printing, Exporting, Faxing and E-Mailing
6 - Introduction to Styles
7 - Working with Styles
8 - Working with Graphics
9 - Working with Tables
10 - Working with Templates
11 - Using Mail Merge
12 - Tables of Contents, Indexes and Bibliographies
13 - Working with Master Documents
14 - Working with Fields
15 - Using Forms in Writer
16 - Customizing Writer – Keyboard shortcuts.

When a pop-up window opens, click the Help button for extensive help on that function - it is often more comprehensive than the manual.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Deke
Posts: 3
Joined: Wed Jan 13, 2021 8:23 pm

Re: Distance between text and underline

Post by Deke »

Thank you John, that is an interesting option.
Apache Open Office 4 4.1.7.
Windows !0 Professional
User avatar
RoryOF
Moderator
Posts: 34614
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Distance between text and underline

Post by RoryOF »

I haven't looked into the matter, but I think the underline is as defined in the font. You could try editing the font underline character by increasing its spacing, using a font editor, and see if that changes things
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Distance between text and underline

Post by John_Ha »

RoryOF wrote:You could try editing the font underline character by increasing its spacing, using a font editor, and see if that changes things
Rory

It no doubt does - the line then probably clashes with the ascenders from the line below.

If the text was fully justified each line could be written as a separate paragraph and a paragraph border below with the required spacing could be added. You then need to cover the border extending beyond the last line.

Or draw a drawing line under the text.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
JeJe
Volunteer
Posts: 2780
Joined: Wed Mar 09, 2016 2:40 pm

Re: Distance between text and underline

Post by JeJe »

You could try overlining on the line below.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Distance between text and underline

Post by John_Ha »

Good thinking. It works pretty well as long as you don't do any edits after, as long as you don't use Gap after paragraph as the first line of a new paragraph is then very low. It misses both ascenders and descenders.

It can be impossible to line up if the lower character is a wide character like w.
Clipboard02.png
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
JeJe
Volunteer
Posts: 2780
Joined: Wed Mar 09, 2016 2:40 pm

Re: Distance between text and underline

Post by JeJe »

Another fiddly offbeat one is to have a separate paragraph below made as short in height as possible with line characters or something else for the line.
In the picture the line is overlined spaces in a paragraph below the text set as fixed line spacing of 0.1cm, text to text alignment of Top, character overlining as single and font size 6.
underline.jpg
underline.jpg (1.32 KiB) Viewed 1713 times
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
User avatar
RoryOF
Moderator
Posts: 34614
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Distance between text and underline

Post by RoryOF »

John_Ha wrote:
RoryOF wrote:You could try editing the font underline character by increasing its spacing, using a font editor, and see if that changes things
Rory

It no doubt does - the line then probably clashes with the ascenders from the line below.

If the text was fully justified each line could be written as a separate paragraph and a paragraph border below with the required spacing could be added. You then need to cover the border extending beyond the last line.

Or draw a drawing line under the text.
From my understanding (possibly faulty) of the positioning of the underline character, editing this in the font might require all characters of that font to be positioned on a taller block of space, so that moving the underline down might have the effect of increasing the font "leading".
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Deke
Posts: 3
Joined: Wed Jan 13, 2021 8:23 pm

Re: Distance between text and underline

Post by Deke »

"Or draw a drawing line under the text."
Thanks John, I've found that to be a quick and simple solution to my question.
Apache Open Office 4 4.1.7.
Windows !0 Professional
Post Reply