LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Fonts in gtk1.2 (https://www.linuxquestions.org/questions/debian-26/fonts-in-gtk1-2-a-151179/)

IvanJ 02-27-2004 10:52 AM

Fonts in gtk1.2
 
I don't know how to change the size of fonts that are used by gtk1.2. I need 92dpi or 75dpi fonts, the ones now are very big. I'm using SID

Andrew Benton 02-27-2004 01:27 PM

Fontconfig serves the fonts, not gtk http://www.xfree86.org/4.3.0/fonts2.html

IvanJ 02-28-2004 10:31 AM

Thanks but still nothing. Let me ask in other form. How to make gtk1.2 to use 92 or 75 dpi fonts?

ulrich_e 03-06-2004 12:43 PM

Try 'apt-get install gtk-theme-switch' it's a gui tool to let you switch themes and also choose fonts and their sizes. You'll get switch and switch2 for GTK1 and GTK2 applications respectively in /usr/bin. This should solve your problems by choosing smaller font sizes, there is even a preview.

Regards, Ulrich

IvanJ 03-06-2004 06:08 PM

I tried but nothing. gtk-theme-switch is not working, specially with fonts. i think that i should change 100dpi to 92 in some conf file, but I don't know in wich one

ulrich_e 03-07-2004 03:44 AM

The conf file you should change then is /etc/X11/X86Config-4. There is a 'Section "Files"' in which the path to your fonts is described and 75 dpi and 100 dpi fonts are mentioned. Make sure that the 75 dpi fonts are mentioned first (before the 100 dpi fonts) since XFree86 uses the first fonts it can find.

Here is a sample of my /etc/X11/XF86Config-4 file:

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/PEX"
# Additional fonts: Locale, Gimp, TTF...

Regards, Ulrich

IvanJ 03-07-2004 04:05 PM

That doesn't work either

zero0w 06-14-2004 06:41 AM

You can see if the How-To can help you:

How-To: Modifying UI font of gtk1 and gtk2 application
http://www.linuxquestions.org/questi...hreadid=191124


All times are GMT -5. The time now is 07:21 AM.