Bug 160511

Summary: "box around character" uses too much padding above (matter of taste)
Product: LibreOffice Reporter: Ulrich Windl <u20230201>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: minor CC: miguelangelrv, u20230201
Priority: medium    
Version: 7.5.9.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Magnified screenshot with additional guide lines added
Sample image taken from https://www.high-logic.com/font-editor/fontcreator/tutorials/font-metrics-vertical-line-spacing
Real-life use of box around text
Simple sample document
Screenshot showing boxes around text for some variants

Description Ulrich Windl 2024-04-03 19:14:39 UTC
Created attachment 193467 [details]
Magnified screenshot with additional guide lines added

Trying to create a "poor man's keyboard font" by putting a thin border around characters with 0.05cm distance, the border looks quite "uneven" around the characters.

The screen shot is magnified to see the individual millimeters (and allows guessing the 0.5mm). IMHO there is no logical explanation for the extra space above the "ascender". The boxes do not "look good". Maybe some extra option is needed to ignore the metric limits when they are not used.
Comment 1 Ulrich Windl 2024-04-03 19:15:44 UTC
Created attachment 193468 [details]
Sample image taken from https://www.high-logic.com/font-editor/fontcreator/tutorials/font-metrics-vertical-line-spacing

Illustrating the metrics that Writer might use to compute the boxes around.
Comment 2 Ulrich Windl 2024-04-03 19:18:13 UTC
Created attachment 193469 [details]
Real-life use of box around text

The boxes around the text do not look nice because of the unequal distribution of space.
Comment 3 m_a_riosv 2024-04-03 21:06:43 UTC
Please attach a sample file, reduce the size as much as possible without private information, and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 4 Ulrich Windl 2024-04-04 21:29:23 UTC
Created attachment 193496 [details]
Simple sample document

(In reply to m_a_riosv from comment #3)
Sample file created and attached. Writer version is:

Version: 7.6.6.3 (x86) / LibreOffice Community
Build ID: d97b2716a9a4a2ce1391dee1765565ea469b0ae7
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 5 m_a_riosv 2024-04-04 23:52:01 UTC
Can't you solve it, by disable the synchronization on border's padding?, set up them individually.
Comment 6 Ulrich Windl 2024-04-05 22:36:08 UTC
Created attachment 193529 [details]
Screenshot showing boxes around text for some variants

(In reply to m_a_riosv from comment #5)
> Can't you solve it, by disable the synchronization on border's padding?, set
> up them individually.

When using *one* style for all it would depend on the actual characters being used.