LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   gxmessage alternative that lets you change font (https://www.linuxquestions.org/questions/puppy-71/gxmessage-alternative-that-lets-you-change-font-4175574356/)

Fixit7 03-08-2016 06:32 PM

gxmessage alternative that lets you change font
 
Is there an alternative to gxmessage that lets you change the font size of the messages it displays ?

RockDoctor 03-09-2016 08:15 AM

I believe zenity will let you apply Pango markup to your text

Fixit7 03-10-2016 10:09 AM

Thanks.

trmusson 03-24-2016 12:13 AM

Hi! I'm the author of gxmessage.

The font (including size) for the main message can be given like this:

$ gxmessage -font 'sans 50' 'Hello, world!'
$ gxmessage -font 'serif 50' 'Hello, world!'
$ gxmessage -font 'mono 50' 'Hello, world!'
$ gxmessage -font 'Comic Sans MS 50' 'Hello, world!'

The button text, however, depends on your GTK theme.

If the -font option isn't working for you, please get in touch so I can check it out :)

Thanks,

Tim

Fixit7 03-24-2016 10:52 AM

Thanks.

The window for this message is not large enuf to show the whole message. Is there a limit to the window size.

Quote:

gxmessage -font 'sans 20' -timeout 2 ' BACKING UP FILES FOR SLACKO 6.3.0 TO $Drive_SDC2 AND $Drive_SDB1'

trmusson 03-24-2016 07:48 PM

Before version 2.20.4, there was a silly bug that screwed up automatic window sizing. If you have the latest version (2.20.4), it should be fine.

Gxmessage is supposed to open a window sized according to the text you feed it, up to a maximum of 70% screen width and 70% screen height. (That's what xmessage does, so gxmessage is supposed do behave the same way.)

If the default window size isn't big enough, take a look at the -geometry option:

-geometry 1000x50
-geometry 1000x50+80+80

Or try the -wrap option, which switches on word-wrapping.

See gxmessage -help and man gxmessage for more info :)

Fixit7 03-24-2016 08:37 PM

Thanks.

I have version 2.12. How do I get version 2.20 ?

PPM does not have it.


All times are GMT -5. The time now is 10:07 AM.