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.
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.
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.
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.
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
Can't you solve it, by disable the synchronization on border's padding?, set up them individually.
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.
Your last image is a good example why it doesn't work. Font designers can decide where to place the baseline [1]. Liberation Serif, for example, is a pretty good vertically centered font that you may use instead of the Liberation Sans Narrow. FreeSans works too, and shows the drawback of this center approach: Ģ (g-cedilla) expands slightly below the border. But for sure you find a font that fits your taste for Taste :-). Anything to add, Jonathan? [1] https://en.wikipedia.org/wiki/Typeface_anatomy
(In reply to Ulrich Windl from comment #0) 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, Libertinus Keyboard, part of the Libertinus font family(1), is better adapted to the task and far easier to use: it offers several ligatures to build keys such as Enter, Shift, etc. You can see it in action in this old video: https://www.youtube.com/watch?v=cfMv49bAntA (1) https://github.com/alerque/libertinus