Toolbars: how to insert static information?

Hello,
I can change the toolbars contents and add or remove toolbuttons then make them point to uno functions or to macros. But I don’t know how to add static information, like a label (ex : the current font name) in a given existing toolbar.
I don’t know of any UI option for that, but any macro pointer would be appreciated.
My current need is to add the current font name and size in the “Formatting (Styles)” toolbar.

LibreOffice 7.5.8 under Linux Mint 21.3 Cinnamon.

TIA

  • Do you want only to display the actual font name of the edited text on your own toolbar? - There is a function for that on the default toolbar (Font select list).
  • Do you want to set the font of the edited (selected) text by some static toolbar item? Name your macros as the desired Font is named, add the macros to the toolbar, and do not assign any icon to it.

.
(It is better to use the Character Styles and the Paragraph Styles instead of the direct formatting method.)

https://dev.blog.d ocumentfoundation.org/2024/11/14/notebookbar-part-1-custom-widgets-for-the-tabbed-interface/