Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35584 - invisible underscores with freetype 2.1.5 and vera bitstream monospace in any term
Summary: invisible underscores with freetype 2.1.5 and vera bitstream monospace in any...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Lowest trivial (vote)
Assignee: foser (RETIRED)
URL: http://sharazad.dyndns.org/antonio/im...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 01:45 UTC by Antonio Dolcetta
Modified: 2006-06-04 08:39 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Python script to reproduce the missbehaviour (freetype.py,319 bytes, text/plain)
2005-04-14 12:55 UTC, Andre Kuehne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Dolcetta 2003-12-11 01:45:05 UTC
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.
Comment 1 foser (RETIRED) gentoo-dev 2003-12-11 07:49:02 UTC
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.
Comment 2 Antonio Dolcetta 2003-12-11 08:33:04 UTC
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"

Comment 3 foser (RETIRED) gentoo-dev 2003-12-12 10:25:17 UTC
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.
Comment 4 hodak 2004-02-17 02:13:12 UTC
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.
Comment 5 foser (RETIRED) gentoo-dev 2004-08-08 07:49:09 UTC
this should probably be pushed upstream..
Comment 6 hodak 2004-08-08 13:39:37 UTC
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.
Comment 7 Andre Kuehne 2004-10-10 05:41:21 UTC
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.
Comment 8 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-14 11:48:18 UTC
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?
Comment 9 Andre Kuehne 2005-04-14 12:55:18 UTC
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.
Comment 10 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-15 07:23:34 UTC
Granted, I'm running a uxterm (unicode enabled), but I see the underscore:
http://dev.gentoo.org/~seemant/text.png
Comment 11 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-15 07:24:18 UTC
actually, I just tried xterm, and got an identical image to what I've linked to above.
Comment 12 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-15 07:25:26 UTC
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.
Comment 13 Seemant Kulleen (RETIRED) gentoo-dev 2005-04-15 07:27:00 UTC
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.
Comment 14 Andre Kuehne 2005-04-15 12:15:30 UTC
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.
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-06-04 08:39:33 UTC
Feel free to push this to whatever upstream you deam proper. Python folks are not interested. ;)