View previous topic :: View next topic |
Author |
Message |
zach9824 n00b
Joined: 12 Apr 2004 Posts: 37
|
Posted: Thu Apr 17, 2008 1:18 pm Post subject: |
|
|
Well I figured out what was wrong with my set-up. Long ago I had set some options from within Kcontrol -> fonts. When those settings are changed they automatically override the defaults within ~/.fonts.conf. Setting the KDE Contro panel settings back to the default "use system settings" and re-copying your examples listed above to my ~/.fonts.conf fixes my issues and the fonts even look better still as the correct Sub-pixel setting "rgb" (for my set-up) is now set properly.
So if anyone is experiencing strange issues and using KDE then you should check that your KDE -> Appearance & Themes -> Control Center -> Fonts -> Use anti-aliasing setting is set to "SYSTEM SETTINGS". Otherwise whatever you have set will keep wiping out your local settings and using KDE defined values.
PaulBredbury wrote: | With xdm, there's no need for ~/.xinitrc AFAICT.
But if you are going to keep ~/.xinitrc, then I would suggest sticking in ~/.xprofile or whatever file runs at "user xorg window-manager startup" in this crazy Xorg world:
Code: | /usr/bin/xrdb -merge ~/.Xresources |
For me, Xft.rgba seems to be automagically set to rgb, perhaps due to /etc/fonts/conf.d/ or ~/.fonts.conf |
|
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
|
Back to top |
|
|
OmSai l33t
Joined: 30 Sep 2007 Posts: 605 Location: Manchester, CT, USA
|
Posted: Tue Apr 29, 2008 11:00 am Post subject: |
|
|
I'm getting this error compiling cairo from your overlay -
Code: | x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include/freetype2 -D_REENTRANT -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wdeclaration-after-statement -Wold-style-definition -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -march=athlon64 -O2 -pipe -ggdb -finline-limit=1200 -MT libcairo_la-cairo-xlib-display.lo -MD -MP -MF .deps/libcairo_la-cairo-xlib-display.Tpo -c cairo-xlib-display.c -o libcairo_la-cairo-xlib-display.o >/dev/null 2>&1
cairo-xlib-screen.c: In function '_cairo_xlib_init_screen_font_options':
cairo-xlib-screen.c:192: error: 'FC_LCD_FILTER_DEFAULT' undeclared (first use in this function)
cairo-xlib-screen.c:192: error: (Each undeclared identifier is reported only once
cairo-xlib-screen.c:192: error: for each function it appears in.)
cairo-xlib-screen.c:235: error: 'FC_LCD_FILTER_NONE' undeclared (first use in this function)
cairo-xlib-screen.c:238: error: 'FC_LCD_FILTER_LIGHT' undeclared (first use in this function)
cairo-xlib-screen.c:241: error: 'FC_LCD_FILTER_LEGACY' undeclared (first use in this function)
make[2]: *** [libcairo_la-cairo-xlib-screen.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/libcairo_la-cairo-xlib-display.Tpo .deps/libcairo_la-cairo-xlib-display.Plo
make[2]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.6.4/work/cairo-1.6.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.6.4/work/cairo-1.6.4'
make: *** [all] Error 2
*
* ERROR: x11-libs/cairo-1.6.4 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2719: Called die
* The specific snippet of code:
* emake || die "compile failed"
* The die message:
* compile failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-libs/cairo-1.6.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-libs/cairo-1.6.4/temp/environment'. |
emerge --info: | Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-zen5-g89f66354 x86_64)
=================================================================
System uname: 2.6.24-zen5-g89f66354 x86_64 AMD Athlon(tm) 64 Processor 3800+
Timestamp of tree: Tue, 29 Apr 2008 00:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python: 2.4.4-r9, 2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/rc.d /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /usr/share/X11"
CXXFLAGS="-march=athlon64 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer nostrip sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ "
LINGUAS="hi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/font-overlay /usr/portage/local/layman/gentoo-soor-overlay /usr/local/portage /usr/local/overlays/xfce4-svn"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd amd64 apache2 avi berkdb cairo cdr cli cracklib crypt cups dbus directfb divx divx4linux dri dts dvd dvdnav dvdread encode fame fastcgi firefox flac fortran gdbm gif gmedia gpm gtk hal iconv inifile ipod ipv6 isdnlog jpeg ldap libnotify live lm_sensors logitech-mouse mad matroska mesa midi mjpeg mmx mp3 mpeg mplayer mudflap ncurses newspr nls nptl nptlonly nsplugin ogg oggvorbis opengl openmp oss pam pcre pdf php php5 png postgres pppd python qt3 qt4 quicktime readline realmedia reflection samba scanner sdl session spell spl sqlite3 sse sse2 ssl startup-notification subtitles svg swat tcpd tetex theora tiff truetype type1 unicode vorbis wma wmp xanim xcomposite xine xinetd xorg xscreensaver xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias auth_mysql" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hi" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
_________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Tue Apr 29, 2008 12:33 pm Post subject: |
|
|
You need freetype2/fontconfig/libXft from this overlay with ubuntu/newspr patches enabled to compile that, have you done that? _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Tue Apr 29, 2008 10:29 pm Post subject: |
|
|
I was wondering if there are still any patch sets around for the "stable" versions of cairo (1.4.14) and libXft? Well, I guess that there is only one version of libXft in portage. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Tue Apr 29, 2008 10:32 pm Post subject: |
|
|
cairo 1.6.x is the stable branch. |
|
Back to top |
|
|
OmSai l33t
Joined: 30 Sep 2007 Posts: 605 Location: Manchester, CT, USA
|
Posted: Tue Apr 29, 2008 11:04 pm Post subject: |
|
|
creidiki wrote: | You need freetype2/fontconfig/libXft from this overlay with ubuntu/newspr patches enabled to compile that, have you done that? | That fixed it; thanks! _________________ Gentoo is the stick-shift of Linux.
You work it manually, it has somewhat better performance, but it's really for the fun of it. |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Tue Apr 29, 2008 11:36 pm Post subject: |
|
|
yw.
I'll add built_with_use checks when I can find the time and gather up the necessary 'can-be-bothered' factor _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
anli Tux's lil' helper
Joined: 08 Sep 2006 Posts: 80
|
Posted: Wed Apr 30, 2008 12:29 am Post subject: |
|
|
Is it safe to ignore the meassage?
Quote: | * Overlay eclasses override eclasses from PORTDIR:
*
* '/usr/portage/local/layman/gentoo-soor-overlay/eclass/qt4.eclass'
* '/usr/portage/local/layman/gentoo-soor-overlay/eclass/qt4-build.eclass'
|
|
|
Back to top |
|
|
tatotato Tux's lil' helper
Joined: 27 Apr 2008 Posts: 119 Location: All Along the Watchtower
|
Posted: Wed Apr 30, 2008 12:41 am Post subject: |
|
|
Yeah, they're just handy informational messages. _________________ |spectre-net - my site about nothing | OOSBÈ! DOOVDÈ! | Take me to your dealer | |
|
Back to top |
|
|
yabbadabbadont Advocate
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Wed Apr 30, 2008 2:34 am Post subject: |
|
|
Quit trolling...
It is still keyword masked in the portage tree. |
|
Back to top |
|
|
elkhunter Tux's lil' helper
Joined: 19 Sep 2004 Posts: 138
|
Posted: Wed Apr 30, 2008 3:17 am Post subject: |
|
|
I pulled in the soor overlay but when I try to emerge -pv cairo libXft freetype fontconfig I get the following errors:
* Overlay eclasses override eclasses from PORTDIR:
*
* '/usr/portage/local/gentoo-soor-overlay/eclass/qt4.eclass'
* '/usr/portage/local/gentoo-soor-overlay/eclass/qt4-build.eclass'
*
* It is best to avoid overridding eclasses from PORTDIR because it will
* trigger invalidation of cached ebuild metadata that is distributed with
* the portage tree. If you must override eclasses from PORTDIR then you
* are advised to run `emerge --regen` after each time that you run `emerge
* --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
* would like to disable this warning.
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild R ] media-libs/freetype-2.3.5-r2 USE="X ubuntu%* utils -bindist -debug -doc" 0 kB [0=>1]
[ebuild R ] media-libs/fontconfig-2.5.0-r1 USE="ubuntu%* xml -doc" 0 kB [0=>1]
[ebuild R ] x11-libs/libXft-2.1.12 USE="newspr -debug" 0 kB [1]
[ebuild R ] x11-libs/cairo-1.6.4 USE="X glitz newspr opengl svg -debug -directfb -doc -test -xcb" 0 kB [1]
Total: 4 packages (4 reinstalls), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[1] /usr/portage/local/gentoo-soor-overlay
Am I missing something? I had been using the gentoo-china overlay and had great fonts then I did an update of the world and now my fonts are really ugly. From what I can tell reading through this (long) thread, I don't need gentoo-china anymore and instead just need the soor overlay, right? |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Wed Apr 30, 2008 8:35 am Post subject: |
|
|
The warning is just your package manager trying to masquerade the fact that its broken by complaining about perfectly reasonable stuff
Ignore it. _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Wed Apr 30, 2008 9:27 pm Post subject: |
|
|
Having a little problem, using font-overlay right now, and everything is.. decent, can't quite get it as good as I remember it being ages ago, but it's decent, EXCEPT, this pdf:
http://boo.codehaus.org/BooManifesto.pdf
Which is completely unreadable, looks like spacing between characters is completely screwed up.
Screenshot : http://img216.imageshack.us/my.php?image=screweduplx7.png
Any suggestions?
Also, and quick howto on how to get it good now? So many different ways of doing it these ways, and they dont coexist too happily :p, it'd be nice with short lcd howto of which fonts in xorg.conf & installed/.fonts.conf/patchset. I tend to spend ages tinkering with my fonts now and then, and then the rest of the day trying to get it back to the way it was before I started screwing with it |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Wed Apr 30, 2008 10:22 pm Post subject: |
|
|
You'll have to ask Paul if you want a Howto, all I know is how to mainatin the ebuilds (kinda) and how to make it look good on /my/ box.
eselect fontconfig list: | Available fontconfig .conf files ( * is enabled ):
[1] 10-antialias.conf *
[2] 10-autohint.conf
[3] 10-hinting.conf *
[4] 10-hinting-full.conf *
[5] 10-hinting-medium.conf
[6] 10-hinting-slight.conf
[7] 10-no-sub-pixel.conf
[8] 10-sub-pixel-bgr.conf
[9] 10-sub-pixel-rgb.conf *
[10] 10-sub-pixel-vbgr.conf
[11] 10-sub-pixel-vrgb.conf
[12] 10-unhinted.conf
[19] 30-amt-aliases.conf *
[20] 30-metric-aliases.conf *
[21] 30-urw-aliases.conf *
[22] 40-generic.conf *
[23] 40-nonlatin.conf *
[24] 45-latin.conf *
[25] 49-sansserif.conf *
[26] 50-user.conf *
[27] 51-local.conf *
[28] 53-monospace-lcd-filter.conf * |
cat /etc/fonts/local.conf: | <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<edit mode="assign" name="lcdfilter">
<const>lcdfilterdefault</const>
</edit>
</fontconfig> |
_________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Thu May 01, 2008 7:33 am Post subject: |
|
|
Doing that I get:
Code: |
Fontconfig warning: "local.conf", line 6: invalid constant used : lcdfilterdefault
Fontconfig warning: "/etc/fonts/conf.d/53-monospace-lcd-filter.conf", line 17: invalid constant used : lcdfilterlegacy
|
And while most of my fonts looks great, for example Times look horrible, could you list your font section from xorg.conf, and all the font packages you have installed?
cat /etc/X11/xorg.conf | grep 'font'
equery list | grep 'media-fonts' |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Thu May 01, 2008 12:43 pm Post subject: |
|
|
That shouldn't happen with the ubuntu-patched freetype-2/fontconfig ... strange.
It doesn't here, at any rate. _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Thu May 01, 2008 1:18 pm Post subject: |
|
|
creidiki wrote: | That shouldn't happen with the ubuntu-patched freetype-2/fontconfig ... strange.
It doesn't here, at any rate. |
The default times font also look really bad, probably because I've screwed around with it for so long, and have some "stale" fonts installed or something.
The output of :
cat /etc/X11/xorg.conf | grep 'font'
equery list | grep 'media-fonts'
Would help a lot, so I can clear out the fonts packages I have that aren't needed. |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Thu May 01, 2008 1:25 pm Post subject: |
|
|
I achieved a better looking times font by enabling 70-no-bitmaps.conf and of course disabling 70-yes-bitmaps.conf
HTH
swimmer |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Thu May 01, 2008 1:27 pm Post subject: |
|
|
neuron wrote: | cat /etc/X11/xorg.conf | grep 'font' |
grep font /etc/X11/xorg.conf: | (nothing) |
neuron wrote: | equery list | grep 'media-fonts' |
eix -IC media-fonts --only-names: | media-fonts/adi-dsp-fonts
media-fonts/arkpandora
media-fonts/artwiz-aleczapka-en
media-fonts/cheapskatefonts
media-fonts/corefonts
media-fonts/cronyx-fonts
media-fonts/dejavu
media-fonts/efont-unicode
media-fonts/encodings
media-fonts/essays1743
media-fonts/font-adobe-100dpi
media-fonts/font-adobe-75dpi
media-fonts/font-adobe-utopia-type1
media-fonts/font-alias
media-fonts/font-bh-ttf
media-fonts/font-bh-type1
media-fonts/font-bitstream-100dpi
media-fonts/font-bitstream-speedo
media-fonts/font-bitstream-type1
media-fonts/font-cursor-misc
media-fonts/font-ibm-type1
media-fonts/font-micro-misc
media-fonts/font-misc-misc
media-fonts/font-mutt-misc
media-fonts/font-util
media-fonts/font-xfree86-type1
media-fonts/freefont-ttf
media-fonts/freefonts
media-fonts/gnu-gs-fonts-other
media-fonts/gnu-gs-fonts-std
media-fonts/hunkyfonts
media-fonts/intlfonts
media-fonts/lfpfonts-fix
media-fonts/lfpfonts-var
media-fonts/sharefonts
media-fonts/tengwar-fonts
media-fonts/terminus-font
media-fonts/ttf-bitstream-vera
media-fonts/ttf-gentium
media-fonts/ttf-sil-charis
media-fonts/ttf-sil-doulos
media-fonts/unifont
media-fonts/urwvn-fonts |
_________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu May 01, 2008 4:26 pm Post subject: |
|
|
Specify lcdfilterblah in ~/.Xresources and not in ~/.fonts.conf
That means not in /etc/fonts/ |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Thu May 01, 2008 8:26 pm Post subject: |
|
|
Yell at ubuntu then, 53-monospace-lcd-filter.conf is from their patches _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu May 01, 2008 8:34 pm Post subject: |
|
|
Ubuntu messed up there. I'm quite happy to forgive them, since they have the best font rendering. |
|
Back to top |
|
|
natros n00b
Joined: 26 Sep 2003 Posts: 70
|
Posted: Fri May 02, 2008 2:58 pm Post subject: |
|
|
PaulBredbury wrote: | Specify lcdfilterblah in ~/.Xresources and not in ~/.fonts.conf
That means not in /etc/fonts/ |
What's the difference between those two files? I have always made my changes in ~/.fonts.conf
I think we all agree that the Ubuntu fonts have a better looking, why don't the gentoo devs use the ubuntu patchs?
What's the "official" source/overlay? I have seen tar files, svn sources, git sources, xeffects overlay, fonts overlay,... I'ts a mess. I will not volunteer for writing docs as my english is bad but if you need my help for other things I'm available. _________________ -=[abit ip35 pro core2quad q6600 (oc 3.0 ghz) 8 gb ram 2x320 raid0 ext4 xfx8800gt 512mb]=- |
|
Back to top |
|
|
creidiki Apprentice
Joined: 23 Mar 2007 Posts: 283 Location: Varese (Italy)
|
Posted: Fri May 02, 2008 6:43 pm Post subject: |
|
|
I'd like to know when people are getting those warnings.
Because I've got lcdfilter stuff set in fonts.conf, and no warning _________________ '((eINIT) (soor overlay)) |
|
Back to top |
|
|
|