Results 1 to 4 of 4

Thread: shell script to get current system font?

  1. #1
    Join Date
    Nov 2009
    Location
    Los Angeles
    Beans
    393
    Distro
    Ubuntu

    shell script to get current system font?

    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 -

  2. #2
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,705
    Distro
    Ubuntu Development Release

    Re: shell script to get current system font?

    But, you didn't specify which of all these you need:

  3. #3
    Join Date
    Mar 2007
    Location
    Your Closet
    Beans
    380
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: shell script to get current system font?

    Code:
    % 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.
    ...

  4. #4
    Join Date
    Nov 2009
    Location
    Los Angeles
    Beans
    393
    Distro
    Ubuntu

    Re: shell script to get current system font?

    Quote Originally Posted by hakermania View Post
    But, you didn't specify which of all these you need:
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •