LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2010, 10:11 PM   #1
mike11
Member
 
Registered: Apr 2009
Posts: 222

Rep: Reputation: 17
change ghostview (gv) menu font size


Hi All,

How to change the GV menu font size? (not the document font size which is set by scale). man and info don't mention anything about this.

Thanks,
Mike.
 
Old 09-27-2010, 11:33 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
In your .Xdefaults (or .Xresources) you can set it with a line like:
Code:
gv*font: -*-helvetica-medium-r-normal--*-80-*-*-*-*-*-*
I think this is not documented specifically for gv since it is a standard resource for this type of Xt program.

Cheers,

Evo2.
 
Old 09-28-2010, 03:16 AM   #3
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
Thanks evo2. Do you know if it's possible to modify the menu layout (normal and spartan mode)?. Is it possible to add or remove entries?.
 
Old 09-28-2010, 03:40 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
From the man page it seems that --spartan just does --style=gv_spartan.dat. I looked for that file on my system and found it at /usr/share/gv/gv_spartan.dat. It looks like Xdefaults syntax so you may just be able to copy the contents of that file into your .Xdefaults to get the desired effect.

HTH,

Evo2.
 
Old 09-28-2010, 08:34 AM   #5
mike11
Member
 
Registered: Apr 2009
Posts: 222

Original Poster
Rep: Reputation: 17
Thanks Evo2.
 
Old 12-11-2021, 09:26 AM   #6
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Resurrect an Ancient Thread about /usr/bin/gv Widget Fonts

All --

Sorry to resurrect this ancient thread but here goes ...

I am running current with the KDE Desktop on my new Laptop with a high-rez display ( 192 dpi / 3840 x 2160 )

I use /usr/bin/gv extensively for my job -- mostly to measure xy coordinates on PDF Pages.

The menus and widgets in /usr/bin/gv are so tiny that I can't read them.

I tried the solution above via the simple ~/.Xresources entry followed by `xrdb -merge ~/.Xresources`

I looked at the Slackware gv source and I found the file: source/gv-3.7.4/src/gv_font_res.dat

The Xresources are named with a capital GV like this:

Code:
GV*font: -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1
I tried doubling the font size to 280 in my ~/.Xrsources and then ran `xrdb -merge ~/.Xresources`

Code:
GV*font: -*-Helvetica-Medium-R-Normal--*-280-*-*-P-*-ISO8859-1
No luck ...

Any ideas ?

Thanks !

-- kjh
 
Old 12-11-2021, 09:43 AM   #7
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
I just happen to have gv installed.

Code:
gv --version
gv 3.7.4
If I launch it from term I get
Code:
gv
Warning: Cannot convert string "-*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1" to type FontStruct
Warning: Cannot convert string "-*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1" to type FontStruct
Warning: Cannot convert string "-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1" to type FontStruct
Warning: Cannot convert string "-*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1" to type FontStruct
And it works ok, but the menu fonts are small.

So, in my ~/.Xdefaults I added:
Code:
gv*font: -*-fixed-medium-r-*-*-30-*-*-*-*-*-iso8859-*
And sure enough, that made gv menu fonts real large.
 
Old 12-11-2021, 10:20 AM   #8
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Thanks teckk

I thought I was posting to the Slackware Forum so I neglected to say that I am running Slackware Current.

I tried your suggestion but no luck.

I'll keep looking

Thanks again.

-- kjh
 
Old 12-11-2021, 10:56 AM   #9
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by kjhambrick View Post
The Xresources are named with a capital GV like this
In my experience, using the capital GV will only change the widget font, but won't affect the menu font. For that, you'll have to use gv.

Try
Code:
echo 'gv*font:12x24' >/tmp/gv.ad
gv -ad=/tmp/gv.ad
 
Old 12-11-2021, 03:52 PM   #10
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Thanks for the info Shruggy

Your specific ad=FILE hint didn't work but your method of testing 'additional resources' lead me to the -style=FILE Arg

These args are certainly more convenient than messing with ~/.X{resources,defaults}

Thanks again.

-- kjh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wine Menu Font Size Tiny Murdock1979 Linux - Software 1 12-02-2018 12:35 PM
How to change font color and font size in terminal ? wlaw Linux - Newbie 3 05-15-2007 08:57 PM
Seamonkey Menu Font size bgeddy Slackware 3 03-30-2007 07:05 PM
Font and Menu Size Problems rlinux SUSE / openSUSE 3 12-19-2005 11:30 AM
font and menu bar size is crazy ryancw Linux - Newbie 0 11-13-2003 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration