WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   font-antialiasing futsch seit gnome2 (http://www.wcm.at/forum/showthread.php?t=90355)

paux 06.03.2003 19:26

font-antialiasing futsch seit gnome2
 
hallo,

ich finde jetzt schon ewig keine lösung, daher anfrage hier.

als ich ein erstes upgrade auf debian SID machte, funktionierte zuerst alles reibungslos. bis eines updates später alles unter X, was nicht gnome2 war, mir ohne font-antialiasing begegnete (siehe anhang). die menüs von gtk1-anwendungen wechseln manchmal sogar von login zu login ein bißchen die schriftgröße. diverseste herumbasteleien waren bislang erfolglos. was ist da los?

lg paux

Philipp 06.03.2003 20:47

Probiere mal als root: fc-cache (+return)

Philipp 06.03.2003 21:06

Du solltest ausserdem eine ".gtkrc" Datei mit folgenden Inhalt in deinen /home Verzeichnis erstellen:

Code:

style "gtk-default-iso-8859-15" {
      fontset = "-*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
                  -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
                  -*-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-15,\
                  -*-arial-medium-r-normal--12-*-*-*-*-*-iso8859-15,*-r-*"
}
class "GtkWidget" style "gtk-default-iso-8859-15"


paux 07.03.2003 00:08

beides schon probiert, leider fehlanzeige.

vielleicht sollte ich noch erwähnen, daß dies nicht erst bei den usern, sondern schon beim gdm auftritt.

Philipp 07.03.2003 00:23

Ist gtk_use_xft=1 in /etc/environment aktiviert?

Philipp 07.03.2003 00:43

Eine andere Möglichkeit:

Öffne /etc/fonts/fonts.conf und ändere /usr/X11R6/lib/X11/fonts/Type1 in /usr/X11R6/lib/X11/fonts

paux 07.03.2003 01:06

war das nicht GDK_USE_XFT=1? schon probiert, beides nutzt nix.
und /etc/fonts/fonts.conf war eh schon so.

Philipp 07.03.2003 01:11

Und was passiert wenn du den Pfad auf /usr/X11R6/lib/X11/fonts/Type1 änderst?

MANX 07.03.2003 01:24

Hi!

Wie schauen Deine Font-Einstellungen aus?
Ich find bei mir sieht's halbwegs brauchbar aus.
Siehe Attachment.

Grüße

Manx

paux 07.03.2003 01:32

Re: font-antialiasing futsch seit gnome2
 
@Philipp: nix.

@MANX:
Zitat:

Original geschrieben von paux
alles unter X, was nicht gnome2 war
soll heißen, gnome2 geht eh

gn8 erstma'

paux 07.03.2003 15:09

hallo,

hab jetzt festgestellt, daß der debian-mozilla (in SID dzt. 1.2.1) mit korrekten fonts daherkommt (sowohl in den menüs als auch im HTML), der selbstinstallierte aber nicht - was weiß also der erste, was der zweite nicht weiß?

Philipp 07.03.2003 15:33

Der erste wird möglicherweise XFT verwenden. Ist das Paket mozilla-xft installiert?

paux 07.03.2003 15:48

$ dpkg -L mozilla-xft
/.
/usr
/usr/lib
/usr/lib/mozilla
/usr/lib/mozilla/components
/usr/lib/mozilla/components/libgfx_gtk.so
package diverts others to: /usr/lib/mozilla/components/libgfx_gtk.so.pure
/usr/share
/usr/share/doc
/usr/share/doc/mozilla-xft
/usr/share/doc/mozilla-xft/copyright

Philipp 07.03.2003 16:07

Ja, der Mozilla aus SID verwendet XFT (libgfx_gtk.so), der andere dagegen nicht.

Wenn du selber mal testen willst:
Zitat:

cd /usr/lib/mozilla/components
mv libgfx_gtk.so libgfx_gtk.so.bak
cp libgfx_gtk.so.pure libgfx_gtk.so
Jetzt sollte auch der Mozilla aus SID hässliche Fonts haben. Und das ganze wieder zurück:
Zitat:

mv libgfx_gtk.so.bak libgfx_gtk.so

Philipp 07.03.2003 16:18

Das Problem dürfte aber an Fontconfig liegen.

Hier noch eine alternative /etc/fonts/fonts.conf Datei. Mache aber vorher einen Backup deiner alten.

paux 07.03.2003 16:31

ok, das mit mozilla stimmt, aber die neue fonts.conf ändert nichts - zumindest nicht nach einem `fc-cache` mit anschließendem X-neustart.

wie bring ich den anderen anwendungen bei, diese einstellungen vorzunehmen?

Philipp 07.03.2003 17:04

Zitat:

Original geschrieben von paux
wie bring ich den anderen anwendungen bei, diese einstellungen vorzunehmen?
Du müsstest alle Anwendungen mit gtk2 neu kompilieren ;)

Anscheiend hat die aktuelle Fassung von SID ein Problem mit gtk1 Anwendungen.

Philipp 07.03.2003 17:28

Nächster Versuch:

Könntest du den Inhalt von /etc/X11/fs/config und /etc/X11/xf86config-4 posten?

paux 07.03.2003 17:49

hatte schon nachgesehen, da paßt IMHO alles.

ich werd halt erstmal abwarten bzw. aufgeben.

danke jedenfalls für die mühe!

lg paux

Philipp 07.03.2003 18:17

Schau trotzdem mal nach ob die TTF Einträge drinnen sind ;)

Moose 07.03.2003 18:23

Dazu hätte ich auch eine Frage.

Habe ein ähnliches Problem wie paux, aber bei mir gehen jetzt mit installierten msttcorefonts die HTML Seiten wieder mit Aliasing.

Nur Evolution 1.2.2 hat eine derartig häßliche Darstellung der Schrift - das glaubt man kaum.
An der /home/moose/.gtkrc kanns nicht liegen, habe sie testweise gelöscht, keine Veränderung?! :confused:

Philipp 07.03.2003 18:26

Zitat:

Original geschrieben von Moose
Habe ein ähnliches Problem wie paux, aber bei mir gehen jetzt mit installierten msttcorefonts die HTML Seiten wieder mit Aliasing.

Nur Evolution 1.2.2 hat eine derartig häßliche Darstellung der Schrift - das glaubt man kaum.
An der /home/moose/.gtkrc kanns nicht liegen, habe sie testweise gelöscht, keine Veränderung?! :confused:

Ist exakt das gleiche Problem. Evolution ist eine GTK1 Anwendung.

Könntest du mal /etc/X11/fs/config und /etc/X11/xf86config-4 posten?

Moose 07.03.2003 18:43

Hmm, wenns nicht zuviel Umstände für Euch macht ;).

Übrigens, sogar gedit hat sehr schöne Schrift :D

Also zuerst die config:

# font server configuration file
# $Xorg: config.cpp,v 1.3 2000/08/17 19:54:19 cpqbld Exp $

# allow a maximum of 10 clients to connect to this font server
client-limit = 10
# when a font server reaches its limit, start up a new one
clone-self = on
# log messages to /var/log/xfs.log (if syslog is not used)
error-file = /var/log/xfs.log
# log errors using syslog
use-syslog = on
# turn off TCP port listening (Unix domain connections are still permitted)
no-listen = tcp
# paths to search for fonts
catalogue = /usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/CID/,/usr/lib/X11/fonts/Speedo/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/cyrillic/,/usr/lib/X11/fonts/100dpi/,/usr/lib/X11/fonts/75dpi/
# in decipoints
default-point-size = 120
# x1,y1,x2,y2,...
default-resolutions = 100,100,75,75

# font cache control, specified in kB
cache-hi-mark = 2048
cache-low-mark = 1433
cache-balance = 70

und hier die XF86Config-4

### BEGIN DEBCONF SECTION
# XF86Config-4 (XFree86 server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# If you want your changes to this file preserved by dexconf, only make changes
# before the "### BEGIN DEBCONF SECTION" line above, and/or after the
# "### END DEBCONF SECTION" line below.
#
# To change things within the debconf section, run the command:
# dpkg-reconfigure xserver-xfree86
# as root. Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

Section "Files"
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
Identifier "Generic Video Card"
Driver "ati"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-107
VertRefresh 48-120
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection

Section "DRI"
Mode 0666
EndSection

### END DEBCONF SECTION

Philipp 07.03.2003 19:14

Probiere folgendes:

Füge in der catalogue Zeile von /etc/X11/fs/config das hinzu: /usr/lib/X11/fonts/TTF

Mache das gleiche in /etc/X11/xf86config-4:
FontPath "/usr/lib/X11/fonts/TTF"

Danach Neustarten. Ist es jetzt besser?

Moose 07.03.2003 19:21

Das hat leider gar nix gebracht :(

Was ist dieses TTF ? ah truetypefonts ?!

Philipp 07.03.2003 19:42

Zitat:

Das hat leider gar nix gebracht
:heul:

Zitat:

Was ist dieses TTF ? ah truetypefonts ?
Ja. Dieser Eintrag wurde anscheiend beim aktuellen SID vergessen.

Hier noch eine alternative /etc/X11/fs/config Datei. Wird aber wahrscheinlich auch wenig bringen :(


Alle Zeitangaben in WEZ +2. Es ist jetzt 08:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag