LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   GTK font selection (https://www.linuxquestions.org/questions/debian-26/gtk-font-selection-924420/)

qrange 01-18-2012 08:38 AM

GTK font selection
 
how to change font for GTK applications without manually editing ~/.gtkrc-2.0
?

Randicus Draco Albus 01-18-2012 08:35 PM

It is difficult to discern exactly what you mean.

Do you mean simply change the founts that are displayed?
If you are using Gnome, Kde, XFCE or LXDE, founts can be changed in the Appearance dialogue box. With Gnome and XFCE one can also click the right mouse button on the desktop. If using Openbox, settings are changed with Obconf.

Do you mean add GTK founts to the system?
Fount packages are available in both Synaptic and the Software Centre.

If using lxappearance, the /.gtkrc-2.0 file is automatically generated and will be over-written. Changes should be made to /.gtkrc-2.0.mine. I assume this holds true for other appearance tools, but I am only guessing.

qrange 01-19-2012 01:45 AM

Quote:

Originally Posted by Randicus Draco Albus (Post 4578430)
you are using Gnome, Kde, XFCE or LXDE, founts can be changed in the Appearance dialogue box.

unfortunately that doesn't work in all applications (like iceweasel).

obconf reported many errors: "
Code:

(obconf:2989): GdkPixbuf-CRITICAL **: gdk_pixbuf_fill: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(obconf:2989): GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `src_pixbuf != NULL' failed

(obconf:2989): GdkPixbuf-CRITICAL **: gdk_pixbuf_new: assertion `height > 0' failed

"
but it seems to work, thanks.

Randicus Draco Albus 01-19-2012 03:39 AM

If the problem is with IceWeasle, that is another matter. I have seen many posts on several fora concerning founts on web browsers. It seems they have their own methods of rendering, so letters occasionally look different than on the rest of the system. ??:scratch:
I can offer no ideas, since it is not a problem I have had. All I know is that IceWeasle/FireFox allows fount selection in Edit/Preferences/Content. All of the founts on your system should be there. If not, we are way beyond the bounds of my meagre expertise.

qrange 01-20-2012 02:55 AM

I solved the Iceweasel problem too, by editing file ~/.mozilla/firefox/*.default/chrome/userChrome.css

it is sad that we still have to edit files to configure such things.

62chevy 01-21-2012 11:25 AM

Quote:

Originally Posted by qrange (Post 4579582)
I solved the Iceweasel problem too, by editing file ~/.mozilla/firefox/*.default/chrome/userChrome.css

it is sad that we still have to edit files to configure such things.


Glad you figured it out. would you mind sharing just what you changed in the file and what version of Iceweasel you are using. You might help some poor soul in the future with the same problem.

Thanks

qrange 01-21-2012 03:03 PM

added this to end of file:
Code:


/* Global UI font */
* { font-size: 12pt !important;
font-family: Liberation !important;
}



All times are GMT -5. The time now is 02:59 PM.