Control the size of the content in a zenity window?

前端 未结 1 1813
长发绾君心
长发绾君心 2021-02-07 18:24

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

$ zenity --info --text=\"This is an information          


        
1条回答
  •  迷失自我
    2021-02-07 18:43

    Zenity allows some markup like , or . In fact it's Pango Markup. So larger text can be achieved with a span that has a font or size attribute:

    For example:

    zenity --info --text 'Some\nbig text\n\n(it is also blue)'
    

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

    See also:

    zenity --info --text 'Normal Big Bigger'
    

    To increase the font size without specifying an exact size.

    0 讨论(0)
提交回复
热议问题