What is the best way to adjust the font size of multiple Gtk.TextViews simultaneously? The initial situation of the font can be chosen via CSS in a simple way, but after the TextViews are already created and in use, it is no longer so simple to do this for several of them (imagine the context of a note taker app, for example).
Options that I know of:
- Create a CSS class for this and add the class in all TextViews.
It’s simple, but it makes mandatory to establish several CSS classes with predefined font sizes, making impossible to generate the size dynamically.
- Use tags in Gtk.TextBuffer.
It allows dynamic variations but it doesn’t seem right to me when the idea is just to change the size of the displayed text, instead of actually changing the font size as a characteristic of the text (which, in this case, it isn’t)