since upgrading to freetype 2.1.5 I have a problem with my xterm windows, i use vera monospace as the font. the url posted above is a screenshot demonstrating the problem, as you see underscores are not always displayed. For now I have manually added >=media-libs/freetype-2.1.5 to my /usr/portage/profiles/package.mask but I can do any test you might want Reproducible: Always Steps to Reproduce: 1. 2. 3.
how do you run your xterm exactly, i can't reproduce this ? how did you compile your freetype btw, what useflags did you use ? and please always provide your 'emerge info' in bugreports.
the command i use for starting an xterm is: xterm -ls -fg lightgrey -bg black -rightbar -fa monospace -fs 8 -j -lc -si -sk this is the other info you requested: hope everything's here... simbad root # emerge -pv freetype These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] media-libs/freetype-2.1.5 [2.1.4-r1] +zlib -bindist simbad root # emerge info Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test10) ================================================================= System uname: 2.6.0-test10 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -Os -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/s hare/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -Os -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 apm avi berkdb cdr crypt cups dga dvd encode fbco n foomaticdb gdbm ggi gif gpm gtk gtk2 gtkhtml guile imlib innodb java jpeg lcms libg++ libwww mad maildir mikmod mmx motif mozilla mpeg mysql nas ncurses nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl sla ng spell sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib v ideo_cards_radeon"
hm yeah i can reproduce it up to fontsize 11 with xterm. Doesn't happen with gnome-terminal though, so i'm not sure if it's really a freetype problem or that it has to do with how xterm uses freetype.
I am also experiencing the same problem with freetype 1.2.5 (it just turned stable) and xterm. Also, the underscore problem exists only in xterm, gnome-terminal works fine, Here is a screenshot: http://nemo.physics.ncsu.edu/~hodak/Screenshot-3.png The top left terminal is xterm, the one on the right is gnome-terminal. Note that command "ls gentoo_injected" is OK, but the output misses underscore in xterm. The xterm command I use is xterm -fa "Bitstream Vera Sans Mono" -fs 14 Other fonts (Luxi Mono or Andale Mono) do not exhibit this behavior. Freetype is emerged with bindist flag off, but I have the following set in /etc/fonts/local.conf: <match target="font"> <edit name="autohint" mode="assign"><bool>true</bool></edit> </match> <match target="font"> <edit name="rgba" mode="assign"><const>none</const></edit> </match> </fontconfig> which should turn on autohinter. I have found that commenting this, underscores are visible, but I like fonts with autohinter on. I have also noticed one other difference in xterm: The line spacing is smaller when using freetype 1.2.5. Again here are screenshots freetype 1.2.4 http://nemo.physics.ncsu.edu/~hodak/Screenshot-2.png freetype 1.2.5 http://nemo.physics.ncsu.edu/~hodak/Screenshot-1.png The gkrellm size in both screenshots is the same (as is the number of lines in xterm), so one can see that with xterm is shorter with new freetype. Looking carefully at the screenshots, one can see that the difference is that spacing between lines is smaller with new freetype, while the fonts looks very closely the same. I am not sure if the underscore problem can be due to decreased line spacing, but at least it shows that xterm handles Vera font differently for freetype 1.2.4 and 1.2.5. Again, for gnome-terminal there is no noticable linespacing change.
this should probably be pushed upstream..
I have recently updated to xorg and with xterm 191 I do not have this problem anymore. So, as far as I am concerned, this bug can be closed as problem seems to be fixed.
I have a similar problem with freetype-2.1.5-r1 and dev-python/imaging. When drawing fonts with Python Imaging Library (PIL) it seems that the lowest row of all characters are cut off. You can see this with the chars "[]{}Qg" for example. Since there are no others versions of freetype available at the moment in gentoo linux, i would also think that the severity is more than trivial.
Andre, in fact the version of freetype has been 2.1.9 for a while now. Is any of this still an issue with you?
Created attachment 56290 [details] Python script to reproduce the missbehaviour I can still reproduce the wrong rendering (using freetype 2.1.9-r1) with the attached python script. But only with fonts of the verdana family (/usr/share/fonts/corefonts/verdana*.ttf). I am not sure if i checked other fonts with earlier freetype versions, but i am sure that the verdana fonts were working right at some point.
Granted, I'm running a uxterm (unicode enabled), but I see the underscore: http://dev.gentoo.org/~seemant/text.png
actually, I just tried xterm, and got an identical image to what I've linked to above.
ohhh wait, ignore the comments above. Yes, the bottom rows are disappearing for me as well (as the image shows). No idea what this is about though.
I just ran the same python script in gnome terminal and saw the same thing happen though -- so this is probably not an xterm thing. Punting this bug to the python team to see if they know anything about it.
I already posted this to Python's Image-SIG a while ago, see: http://mail.python.org/pipermail/image-sig/2004-October/002975.html Btw, i don't think this has anything to do with the xterm you use. Can anyone reproduce this with other fonts? If this is only verdana related, it's still strange but not that essential to me.
Feel free to push this to whatever upstream you deam proper. Python folks are not interested. ;)