Ti rispondo con un post che ho pubblicato nel forum documentazione di LibreOffice.
È in inglese ma sarà facile per te tradurlo con Google o simili.
There is no option in the properties of a custom character style to specify “No font size”, but it can be done.
To make the font size of a custom character style match the font size of any paragraph:
- New style:
1- Create a character style with inheritance of “No Character Style”
2- Change the font to Liberation Mono
– VERY IMPORTANT: DO NOT CHANGE THE FONT SIZE –
3- Change the font color, the background or anything you think is appropriate.
Click the OK button
You already have a character style that, when applied to any paragraph, adapts its font size of any paragraph
Note: Although you saw in the dialog that the font size is 12 pt, this corresponds to the default font size that Writer uses for a file created with the Default template. FORGET THAT SIZE.
- Style already created:
1- Open the properties dialog of the Code style
2- In the Font tab, press the Reset to parent button. You have to be in the Font tab because otherwise it has no effect.
— The Reset to parent button only resets the properties of the opened tab.
3 - The font will have returned to Liberation Sans, the size to 12 etc.
4 – Change only the font to the Liberation Mono . DO NOT CHANGE THE FONT SIZE.
5 – Click on the OK button.
You now have the Adaptative character style.