WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gtk2 fonts  (Read 3569 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1218
gtk2 fonts
« on: September 13, 2010, 05:48:02 AM »
All my fonts are rendered too small in gtk2. I'm currently using font size 64.

microcore 3.1 with radeon xorg, xinerama, kms

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: gtk2 fonts
« Reply #1 on: September 13, 2010, 06:03:04 AM »
I have a similar sort of issue with kms, except that my problem is that gtk2 windows are rendered too big.

I played with a couple of settings in xorg.conf:
Code: [Select]
Section "Monitor"
    Identifier   "LCD"
    DisplaySize    260 162
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    VendorName  "Intel Corporation"
    BoardName   "Integrated Graphics Chipset: Intel(R) 945GM"
    BusID       "PCI:0:2:0"
    Option        "DPI" "125 x 125"
    Option        "Monitor-LVDS1" "LCD"
EndSection

..basically I varied DisplaySize and DPI. Maybe you could also try 100dpi fonts?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: gtk2 fonts
« Reply #2 on: September 13, 2010, 06:08:53 AM »
If it is GTK2 related, you can change font style, size, etc. in GTK2 settings.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline hiro

  • Hero Member
  • *****
  • Posts: 1218
Re: gtk2 fonts
« Reply #3 on: September 13, 2010, 06:32:35 AM »
That's what I did...

Offline hiro

  • Hero Member
  • *****
  • Posts: 1218
Re: gtk2 fonts
« Reply #4 on: September 13, 2010, 06:50:11 AM »
I'm not using xorg.conf, but xrandr for my multiple screen setup.
And I'm only using truetye/freetype fonts.

After I now ran xrandr --dpi 75 gtk apps run correctly. It seems to be the only library which bothers about that property...
« Last Edit: September 13, 2010, 07:16:04 AM by hiro »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: gtk2 fonts
« Reply #5 on: March 12, 2013, 03:49:12 AM »
This thread may be a bit of age but...
Helped me to fix size of fonts which were way too big with Xorg, but besides from gtk2 apps also jwm (only dependent on X libs) and opera (in X toolkit mode) were affected, while with Xvesa font sizes have always been perfect out of the box.
Using "xrandr --dpi 75" fixes font sizes, though I lost a lot of energy and time, not realizing that with "jwm -restart" the new setting wasn't applied - it needed a kill and run cycle.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14568
Re: gtk2 fonts
« Reply #6 on: March 12, 2013, 05:28:05 AM »
I take it "--dpi 75" is the size of the xorg fonts and not your screen?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: gtk2 fonts
« Reply #7 on: March 12, 2013, 05:35:40 AM »
Hrm? I just did "xrandr --dpi 75" as read in post above, which then renders fonts of apps mentioned much smaller. There seems to be no change with fonts of fltk apps or aterm (which were fine to begin with), I suspect it might affect antialiased fonts only (TTF ??).
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: gtk2 fonts
« Reply #8 on: March 12, 2013, 05:37:19 AM »
Clarification: As I mentioned opera, only fonts of GUI are affected, not content of webpages.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: gtk2 fonts
« Reply #9 on: March 12, 2013, 05:58:54 AM »
Having done some more testing I can confirm the settings indeed affects only certain fonts.
I gets more obvious when choosing extreme values like --dpi 8 or --dpi 1024 :P
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: gtk2 fonts
« Reply #10 on: March 14, 2013, 11:11:10 PM »
I'm not using xorg.conf, but xrandr for my multiple screen setup.
And I'm only using truetye/freetype fonts.

After I now ran xrandr --dpi 75 gtk apps run correctly.
Adding the value to .xsession fixes it for me without need of xrandr:
Code: [Select]
/usr/local/bin/Xorg -dpi 75 -nolisten tcp &
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)