Re: font size in applications are huge in my VM instance

Previous thread: none

Next thread: Re: Old IPSEC bug by Theo de Raadt on Friday, December 17, 2010 - 9:24 am. (2 messages)
From: Bryan
Date: Friday, December 17, 2010 - 7:55 am

Greetings,

I use my OpenBSD at work on a VMware instance.  I have tried this in
my default WM (scrotwm), and also in fluxbox.  When I launch an
application, like Gimp, or Firefox in my VM instance, the fonts in the
dialog boxes, menus, and toolbars are large, like someone did a
'Ctrl+' in firefox to increase the font. The resolution on the
instance is 1280x1024, because xrandr won't emulate a 1680x1050
screen.

I have a screenshot here:

http://picasaweb.google.com/lh/photo/DRmfBOWqCpl64VFjc_5kwPpTm2ZJIAmfG4KTNOagEkk?feat=...


vmt0 appears to work well, as does 'vmwh' from ports...


OpenBSD 4.8-current (GENERIC.MP) #16: Fri Dec 10 12:31:59 CST 2010
    root@openbsd-amd64-v0.ultra-ats.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1236205568 (1178MB)
avail mem = 1189343232 (1134MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe4010 (45 entries)
bios0: vendor Phoenix Technologies LTD version "6.00" date 08/15/2008
bios0: VMware, Inc. VMware Virtual Platform
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP BOOT APIC MCFG SRAT
acpi0: wakeup devices PCI0(S3) USB_(S1) P2P0(S3) S1F0(S3) S2F0(S3)
S3F0(S3) S4F0(S3) S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3) S9F0(S3)
Z00P(S3) Z00Q(S3) Z00R(S3) Z00S(S3) Z00T(S3) Z00U(S3) Z00V(S3)
Z00W(S3) Z00X(S3
) Z00Y(S3) Z00Z(S3) Z010(S3) Z011(S3) Z012(S3) Z013(S3) Z014(S3)
Z015(S3) Z016(S3) Z017(S3) Z018(S3) Z019(S3) Z01A(S3) Z01B(S3)
P2P1(S3) S1F0(S3) S2F0(S3) S3F0(S3) S4F0(S3) S5F0(S3) S6F0(S3)
S7F0(S3) S8F0(S3)
S9F0(S3) Z00P(S3) Z00Q(S3) Z00R(S3) Z00S(S3) Z00T(S3) Z00U(S3)
Z00V(S3) Z00W(S3) Z00X(S3) Z00Y(S3) Z00Z(S3) Z010(S3) Z011(S3)
Z012(S3) Z013(S3) Z014(S3) Z015(S3) Z016(S3) Z017(S3) Z018(S3)
Z019(S3) Z01A(S3) Z0
1B(S3) P2P2(S3) S1F0(S3) S2F0(S3) S3F0(S3) S4F0(S3) S5F0(S3) S6F0(S3)
S7F0(S3) S8F0(S3) S9F0(S3) Z00P(S3) Z00Q(S3) Z00R(S3) Z00S(S3)
Z00T(S3) Z00U(S3) Z00V(S3) Z00W(S3) Z00X(S3) Z00Y(S3) Z00Z(S3)
Z010(S3) Z011
(S3) Z012(S3) Z013(S3) Z014(S3) Z015(S3) Z016(S3) Z017(S3) ...
From: Gonzalo L. R.
Date: Friday, December 17, 2010 - 8:40 am

maybe you need something like this:

~ $ cat .gtkrc-2.0
gtk-font-name = "Sans 8"

in your home.


-- 
Sending from my Computer.

From: Bryan
Date: Friday, December 17, 2010 - 9:04 am

That worked for things like firefox, inkscape, and gimp, is there a
kde version?  Koffice is still huge...

From: Gonzalo L. R.
Date: Friday, December 17, 2010 - 10:05 am

gtk != qt I don't use qt :/ sorry


-- 
Sending from my Computer.

From: Ted Unangst
Date: Friday, December 17, 2010 - 8:40 am

Font sizes are based on your DPI settings, which are guessed by the X
server.  There are ways to specify better values, though I'm not sure
how since I've never done it.  The intertubes may know more.

From: Bryan
Date: Friday, December 17, 2010 - 8:45 am

That gets me a step closer... I didn't know how to search for "fonts
sizes are huge in certain X applications"...


hmmm.... looks like xrandr has a switch for --dpi.  I will mess around
with that...


Thanks all...

From: patrick keshishian
Date: Sunday, December 19, 2010 - 3:03 am

I have the following in my ~/.Xdefaults file:

$ grep dpi ~/.Xdefaults
Xft.dpi:72

HTH,
--patrick

From: Bryan
Date: Monday, December 20, 2010 - 8:16 am

On Mon, Dec 20, 2010 at 08:51, Bryan <brakeb@gmail.com> wrote:

Thanks to the offline answers.  I assume that the differences in
resolution and dpi are causing the font issues.

Someone told me to set the following in my .Xdefaults:

Xft.dpi:72

This fixed Kword, firefox, openoffice, inkscape, gimp.


Now that I know what to search for exactly, here are a few links that I found:

http://ubuntuforums.org/showthread.php?t=4456
http://ubuntuforums.org/showthread.php?t=20976
http://avi.alkalay.net/linux/docs/font-howto/Font.html

Some of it is Linux centric, but lots of good info there...

Previous thread: none

Next thread: Re: Old IPSEC bug by Theo de Raadt on Friday, December 17, 2010 - 9:24 am. (2 messages)