f



need monospace font in zenity

Hi All,

I am using Scientific Linux 6.2 x64 (RHEL clone):

$  zenity --info --title="abc" --font "monospace 9" --text "abcdefg"
This option is not available. Please see --help for all possible usages.

$ zenity --help-all | grep -i font
<nothing>

$ rpm -qa \*zenity\*
zenity-2.28.0-1.el6.x86_64


I really need a monospaced font.  I am drawing a blank on Google.
Any one know how to do this?

Many thanks,
-T
0
Todd3275 (92)
12/31/2011 4:16:27 AM
comp.os.linux.misc 33556 articles. 0 followers. amosa69 (78) is leader. Post Follow

2 Replies
519 Views

Similar Articles

[PageSpeed] 15

Todd wrote:
> Hi All,
>
> I am using Scientific Linux 6.2 x64 (RHEL clone):
>
> $  zenity --info --title="abc" --font "monospace 9" --text "abcdefg"
> This option is not available. Please see --help for all possible usages.
>
> $ zenity --help-all | grep -i font
> <nothing>
>
> $ rpm -qa \*zenity\*
> zenity-2.28.0-1.el6.x86_64
>
>
> I really need a monospaced font.  I am drawing a blank on Google.
> Any one know how to do this?
>
> Many thanks,
> -T

Use custom gtkrc:

#v+
kmitko@ideapad:~$ cat bla
style "font" {
font_name="monospace 9"
}
widget_class "*" style "font"
gtk-font-name = "monospace 9"
kmitko@ideapad:~$ GTK2_RC_FILES=bla zenity --info --text  'www
iii'
#v-

-- 
Z pozdrowieniami,
Krzysztof Mitko
0
fakemail1 (8)
12/31/2011 9:10:10 AM
On 12/31/2011 01:10 AM, Krzysztof Mitko wrote:
> Todd wrote:
>> Hi All,
>>
>> I am using Scientific Linux 6.2 x64 (RHEL clone):
>>
>> $  zenity --info --title="abc" --font "monospace 9" --text "abcdefg"
>> This option is not available. Please see --help for all possible usages.
>>
>> $ zenity --help-all | grep -i font
>> <nothing>
>>
>> $ rpm -qa \*zenity\*
>> zenity-2.28.0-1.el6.x86_64
>>
>>
>> I really need a monospaced font.  I am drawing a blank on Google.
>> Any one know how to do this?
>>
>> Many thanks,
>> -T
>
> Use custom gtkrc:
>
> #v+
> kmitko@ideapad:~$ cat bla
> style "font" {
> font_name="monospace 9"
> }
> widget_class "*" style "font"
> gtk-font-name = "monospace 9"
> kmitko@ideapad:~$ GTK2_RC_FILES=bla zenity --info --text  'www
> iii'
> #v-
>

Hi Krzysztof,

     This has been driving me crazy for about two year.  Thank you!

-T


$ xx="`su root -c "virsh list --all"`"

$ cp .gtkrc .gtkrc.monospace.12

$ vi .gtkrc.monospace.12
#
style "font" {
font_name="monospace 12"
}
widget_class "*" style "font"
gtk-font-name = "monospace 12"


$ GTK2_RC_FILES=/home/todd/.gtkrc.monospace.12  \
           zenity --info --title="Status" --text "$xx"
0
Todd3275 (92)
1/1/2012 10:30:52 PM
Reply: