Control the size of content in a zenity window?

I can control the size of the zenity window with the arguments --width and --height :

 $ zenity --info --text="This is an information box." --width=600 --height=400 

Is there a way to control the size of the content? For example, is it possible to double the font size used to display text?

+6
source share
1 answer

Zenity allows some markup like <b>, <i> or <span>. This is actually a Pango Markup . Thus, large text can be achieved using a range that has a font or size attribute:

For instance:

 zenity --info --text '<span foreground="blue" font="32">Some\nbig text</span>\n\n<i>(it is also blue)</i>' 

Note that font = "32" is another way to write size = "32768" , since the size is at 1024 points. font = "32" is a partial description of the font, containing only the size. See the documentation page.

+6
source

Source: https://habr.com/ru/post/951731/


All Articles