LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-05-2015, 11:44 AM   #1
tqisjim
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Changing appearance of apps on XWindow server


I am writing an app using GTK. The app looks great running on a local Ubuntu host. However, the intention is to run this app via Xming from Windows workstations. And the appearance is very disappointing. Particularly:
  • The font is pixelated
  • The default font size is equivalent to 8pt

Other apps, including Firefox, have these same shortcomings.

From what little I know of XWindows, I assume that the appearance is defined by the client host, and not the Xming server.

Even trying to use Google to investigate is giving me fits, since the nomenclature is confusing. What is the appropriate term for the host of the XWindows client?

I'm completely in the weeds here. *Anything* that helps me get my bearings will be *greatly* appreciated. Thanks!

__UPDATE__

The font seems to be defined by the Windows/Xming server and rendered by the Linux/GTK+ client. Since I'm not using a font server, seems likely that the client is defaulting to an undesirable font.

Can anyone confirm this theory? Running XWindows on heterogenous systems seems to be the road less traveled.

Another discovery: In a Linux server/Linux client arrangement, GTK seems to use a 2D theme when the server is on a remote host, and a 3D theme with a shared host.

Last edited by tqisjim; 02-05-2015 at 07:13 PM. Reason: UPDATE
 
Old 02-06-2015, 04:09 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I'd assume xming doesn't have full support. I might be tempted to run mobaxterm or Exceed instead.

Could change colors and fonts for app too.
 
Old 02-07-2015, 09:52 PM   #3
tqisjim
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
More or less figured this out.

http://en.wikipedia.org/wiki/X_Font_Server

Per wikipedia, font rendering has recently moved from the server to the client. Unfortunately I started investigating old clients, xcalc, xterm, etc, and reached the wrong conclusion. In fact, GTK uses Pango to render fonts; everything is based on FreeDesktop.

First solution is XDMCP. Xming implements this as well as anything. Broken in Ubuntu 14.04. I was able to get this to work in 12.04. This link has more details:

https://bugs.launchpad.net/ubuntu/+s...n/+bug/1251281

Second: For nearly identical results, I only needed to edit a file called .gtkrc-2.0 as explained in the following link:

https://wiki.archlinux.org/index.php/GTK%2B

Using strace, I discovered that the remote server uses a different theme Raleigh; the local server uses theme Ambiance. On the local server, the theme is probably inherited somehow from the Desktop Manager.

Added the following two lines to the .gtkrc-2.0 file and got nearly identical results:

gtk-theme-name="Ambiance"
gtk-font-name="Cantarell 14"

Appearances are still not quite identical. The local server is a little crisper in every respect, which I assume is the result of compression.

Last edited by tqisjim; 02-07-2015 at 09:54 PM.
 
  


Reply

Tags
gnome, gtk+, ubuntu, xwindows



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
[SOLVED] Changing the Appearance of the Scroll Bar Dzhonz Linux - Newbie 6 06-15-2014 03:18 AM
[SOLVED] What packages do I need to configure KDE apps' appearance while running XFCE? jdackle Debian 3 04-22-2014 05:25 AM
Changing appearance of Sylpheed frankzen Linux - Software 11 12-20-2012 09:56 PM
Changing the Linux bootup appearance. Nebetsu Debian 1 08-17-2005 04:53 PM
Changing the Desktop Appearance suwandy_chandra Linux - Newbie 1 03-05-2004 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:17 AM.

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