Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

qt font size on secondary display [solved]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
gr0x0rd
Guru
Guru
User avatar
Posts: 311
Joined: Sat Aug 12, 2006 7:37 pm

qt font size on secondary display [solved]

  • Quote

Post by gr0x0rd » Fri Apr 15, 2011 5:28 pm

Hey guys,

I've had this problem for a while... I have a dual head X configuration running xfce. On my secondary display (HDMI 1080p TV) any qt application having text in the gui menus (mplayer, virtualbox, wpa_supplicant) are such a small font size that they can't be read.

Searching "qt font size" in this forum matches nothing. I've looked through a few bug reports but couldn't find anything. Changing the default font size in xfce bumps up everything in gtk+ apps, but does not affect anything written in qt.

Any qt gurus out there know how I might go about solving this one?...
Last edited by gr0x0rd on Sat Jun 04, 2011 7:29 pm, edited 1 time in total.
~g
emerge -FML...
Top
Jim6
Tux's lil' helper
Tux's lil' helper
Posts: 102
Joined: Fri Apr 08, 2005 12:59 am

  • Quote

Post by Jim6 » Sun May 01, 2011 9:09 pm

I've just encountered the same problem in chromium and Virtualbox, it's happened after a wine application crashed, reducing my X resolution. Fixed the resolution with xrandr, but the fonts are tiny. I'll post if I can solve short of a restart / restart of X.
Top
gr0x0rd
Guru
Guru
User avatar
Posts: 311
Joined: Sat Aug 12, 2006 7:37 pm

  • Quote

Post by gr0x0rd » Mon May 09, 2011 3:10 am

Bump...

I just did a brand new installation of my system (hooray for RAID) and after a fresh emerge of X, xfce, and vlc, the menu labels are so small they are unreadable.

On my primary X display, running 1280x1024, all my qt apps menu text labels appear as they should. On my secondary X display, running 1900x1080... well, you get the idea.

So this isn't something being carried over after a package update, but a clear issue with X/xfce/qt.
~g
emerge -FML...
Top
gr0x0rd
Guru
Guru
User avatar
Posts: 311
Joined: Sat Aug 12, 2006 7:37 pm

  • Quote

Post by gr0x0rd » Sat Jun 04, 2011 4:50 pm

This issue is still plaguing me.

My secondary display is a 40 inch Sony Bravia 1080p TV. Here's my xorg.conf for reference:

Code: Select all

###################################################
#
# gr0x0rd's xorg.conf
#
###################################################

Section "ServerLayout"
	Identifier     "TVOut"
	Screen      0  "LCD Screen" 0 0
	Screen         "TV Screen" RightOf "LCD Screen"
EndSection

Section "Module"
	SubSection "extmod"
		Option	    "omit xfree86-dga"
	EndSubSection
	Load  "dbe"
	disable  "dri"
	disable  "dri2"
	Load  "vbe"
	Load  "GLcore"
	Load  "extmod"
	Load  "glx"
	Load  "bitmap"
	Load  "speedo"
	Load  "record"
EndSection

Section "Monitor"
	Identifier   "Dell LCD"
	VendorName   "Dell"
	ModelName    "DELL E196FP"
	HorizSync    31.5 - 31.5
	VertRefresh  60.0 - 60.0
EndSection

Section "Monitor"
	Identifier   "TV"
	VendorName   "Sony"
	ModelName    "Wega"
	Option	    "DPMS" "true"
EndSection

Section "Device"
	Identifier  "Device0"
	Driver      "nvidia"
	VendorName  "NVidia Corporation"
	BoardName   "GeForce GTX 260"
	Option	"UseEvents" "true"
	Option "RenderAccel" "false"
EndSection

Section "Device"
	Identifier  "Device1"
	Driver      "nvidia"
	VendorName  "NVidia Corporation"
	BoardName   "GeForce GTX 260"
	Option	"UseEvents" "true"
	Option "RenderAccel" "false"
	Screen      1
EndSection

Section "Screen"
	Identifier "LCD Screen"
	Device     "Device0"
	Monitor    "Dell LCD"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1280x1024"
	EndSubSection
EndSection

Section "Screen"
	Identifier "TV Screen"
	Device     "Device1"
	Monitor    "TV"
EndSection

Section "Extensions"
	Option	    "Composite" "Enable"
	Option	    "RENDER" "Enable"
	Option	    "DAMAGE" "Enable"
EndSection
Some more info from xrandr

Code: Select all

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 1: minimum 320 x 175, current 1920 x 1080, maximum 1920 x 1080
default connected 1920x1080+0+0 0mm x 0mm
   1920x1080      50.0*    51.0     52.0     53.0  
   1440x480       54.0  
   1400x1050      55.0  
   1280x1024      56.0     57.0  
   1280x960       58.0     59.0  
   1280x720       60.0     61.0  
   1152x864       62.0  
   1024x768       63.0     64.0     65.0     66.0     67.0     68.0  
   960x720        69.0     70.0  
   928x696        71.0     72.0  
   896x672        73.0     74.0  
   832x624        75.0  
   800x600        76.0     77.0     78.0     79.0     80.0     81.0     82.0     83.0     84.0     85.0  
   720x480        86.0     87.0  
   720x400        88.0  
   700x525        89.0     90.0  
   640x512        91.0     92.0     93.0  
   640x480        94.0     95.0     96.0     97.0     98.0     99.0    100.0  
   640x400       101.0  
   640x350       102.0  
   576x432       103.0  
   512x384       104.0    105.0    106.0    107.0    108.0  
   416x312       109.0  
   400x300       110.0    111.0    112.0    113.0    114.0  
   360x200       115.0  
   320x240       116.0    117.0    118.0    119.0  
   320x200       120.0  
   320x175       121.0  
I have

Code: Select all

-qt3 -qt4
set in my /etc/make.conf, and this have the qt4 USE flag enabled per-package in /etc/portage/package.use for vlc, wpa-supplicant, etc.

Could this have anything to do with installed fonts? I did notice a few lines in Xorg.0.log complaining that certain font directories did not exist.

If there is any additional info I can provide let me know, I'm open to anything at this point.

SOLVED! Found the answer at http://forums.gentoo.org/viewtopic-t-876301.html . This was as simple as forcing the DPI settings in xfce's appearance manager. I swear to god I tried this long ago with no effect but perhaps I am mistaken :D
~g
emerge -FML...
Top
Spidey
Apprentice
Apprentice
User avatar
Posts: 269
Joined: Thu Sep 07, 2006 5:53 pm
Contact:
Contact Spidey
Website

  • Quote

Post by Spidey » Sat Jun 04, 2011 11:33 pm

default connected 1920x1080+0+0 0mm x 0mm

Your tv set doesn't report it's size correctly through EDID. You have to set it as a DisplaySize option or a DPI option on xorg.conf.

Jus to confirm my theory, try:

Code: Select all

$ xdpyinfo | grep dimensions
$ xdpyinfo | grep "dots per inch"
DisplaySize example:

Code: Select all

Section "Monitor"
    Identifier "<default monitor>"
    DisplaySize 286 179    # In millimeters
EndSection
DPI example:

Code: Select all

Section "Monitor"
    Identifier "Monitor0"
    Option   "DPI" "96 x 96"
EndSection
I'm still having a related problem, my fonts are HUGE on gtk+ apps running on KDE. Better luck to you.

edit: forget to post the source for more info:
Arch Wiki: https://wiki.archlinux.org/index.php/Xorg
Top
Post Reply

5 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic