View Full Version : shell script to get current system font?
rg4w
April 12th, 2011, 06:43 PM
I'm making a Linux app and want it to conform to the user's current appearance settings. What shell script should I use to find the current system font and size? And will this work on KDE as well as Gnome-based systems, or do I need a different script fot KDE?
Thanks in advance -
hakermania
April 12th, 2011, 06:54 PM
But, you didn't specify which of all these you need:
http://uppix.net/7/b/8/b0b07e7a9b880cfd6605ec908f65b.png
bashologist
April 12th, 2011, 07:49 PM
% gconftool-2 --get /desktop/gnome/interface/font_name
Verdana 10
%
Use gconf-editor and ctrl+f to find other values you're interested in if that's not what you're looking for. Good luck.
rg4w
April 14th, 2011, 01:23 AM
But, you didn't specify which of all these you need:
http://uppix.net/7/b/8/b0b07e7a9b880cfd6605ec908f65b.png
That's a good question. I'll review the Gnome HIG for details on the proper use o the Application and Document fonts, but it looks like those are the ones I'll need.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.