Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170532 - media-libs/freetype-2.3.2 font distortion
Summary: media-libs/freetype-2.3.2 font distortion
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 05:40 UTC by Henry Wertz
Modified: 2007-03-26 08:03 UTC (History)
6 users (show)

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


Attachments
Screen grab, the konsole has funky fonts. xterm etc. do not. (screengrab.png,376.55 KB, image/png)
2007-03-12 05:42 UTC, Henry Wertz
Details
freetype-2.3.2-configure-fix.patch (freetype-2.3.2-configure-fix.patch,645 bytes, patch)
2007-03-19 20:30 UTC, Peter Alfredsen (RETIRED)
Details | Diff
freetype-2.3.2-truetype-regressions-fixes.patch (freetype-2.3.2-truetype-regressions-fixes.patch,4.78 KB, patch)
2007-03-19 20:32 UTC, Peter Alfredsen (RETIRED)
Details | Diff
freetype-2.3.2.patch (patch,510 bytes, patch)
2007-03-19 20:35 UTC, Peter Alfredsen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Wertz 2007-03-12 05:40:21 UTC
The photo is just about worth a thousand words.  letters have odd distortions for konsole.  I'm not sure what font I'm using.  freetype-2.3.1 looks fine.


Reproducible: Always

Steps to Reproduce:
1.Start up X
2.konsole looks funky, but the xterm does not.
3.




Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.9
Timestamp of tree: Mon, 12 Mar 2007 00:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/rtmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://delta/gentoo-portage"
USE="3dnow 3dnowext X a52 aac alsa arts asf audiofile berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cdr cjk cli cracklib crosscompile crypt css cups curl dbus divx4linux dri dts dv dvd dvdr dvdread eds emboss encode esd expat fam fame ffmpeg firefox flac foomaticdb fortran gd gdbm gif gimpprint glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv idn ieee1394 imagemagick insecure-savers ipv6 isdnlog java jpeg junit kde kdeenablefinal kqemu latin1 lcms ldap libg++ lua mad matroska midi mikmod mjpeg mmx mng mozsvg mp3 mpeg mysql mythtv nas ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl oss pam pcre pdf perl pic plugin png posix ppds pppd python qt3 qt4 quicktime readline reflection ruby samba scanner sdl seamonkey session slang spell spl sse ssl subtitles svg tcltk tcpd threads tiff truetype truetype-fonts type1-fonts unicode uniq usb v4l v4l2 vorbis win32codecs wmf x86 xanim xine xml xml2 xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Henry Wertz 2007-03-12 05:42:48 UTC
Created attachment 113040 [details]
Screen grab, the konsole has funky fonts.  xterm etc. do not.
Comment 2 Andreas Klauer 2007-03-12 10:18:06 UTC
I also have this problem, as do several users in the forums http://forums.gentoo.org/viewtopic-t-546166.html

Screenshots:
http://666kb.com/i/amj1gs4swusnz7ofs.jpg
http://666kb.com/i/amj20dveeaqvvgtx4.jpg

Homepage demonstrating the problem in Firefox:
http://www.guidetojapanese.org/
(this page just happens to use the Luxi Sans font which is affected by the bug)

Comment 3 Alessandro Guido 2007-03-12 11:49:25 UTC
Not all fonts are affected on my system. for example Luxi ones (font-bh-ttf) are affected while BitStream Vera or Dejavu are not.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-03-16 18:31:49 UTC
(Something is funny with my mail setup, so I just seen this bug by manual query).

This is indeed not good, but I can't say I have a clue what the problem is... and I can't seem to reproduce it with any of the fonts I have currently installed.

Please try reporting to FreeType upstream, as it doesn't seem to be a Gentoo-specific issue.
Comment 5 Andreas Klauer 2007-03-16 19:20:25 UTC
Upstream already knows about this problem, it's even on their freetype-2.3.2 release news:

http://www.freetype.org/index2.html#release-freetype-2.3.2:
Note that this version contains a serious bug in the handling of TrueType instructions which will be fixed soon in the next release.

So all we can do is wait for freetype-2.3.3 and probably mask 2.3.2 as in worst case fonts become unreadable and make the system hard to use.
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2007-03-19 20:30:54 UTC
Created attachment 113804 [details, diff]
freetype-2.3.2-configure-fix.patch

Dequote OS_INLINE in configure.raw to avoid unexpected shell evaluation
Comment 7 Peter Alfredsen (RETIRED) gentoo-dev 2007-03-19 20:32:05 UTC
Created attachment 113806 [details, diff]
freetype-2.3.2-truetype-regressions-fixes.patch

Fixes for various truetype rendering regressions. Makes http://www.guidetojapanese.org/ display properly again.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2007-03-19 20:35:20 UTC
Created attachment 113808 [details, diff]
freetype-2.3.2.patch

patch for freetype-2.3.2.ebuild to use the attached patches.
Comment 9 Henry Wertz 2007-03-25 04:55:19 UTC
     Yep, adding these patches worked for me.  The konsole looks good, and http://www.guidetojapanese.org/  in particular went from being weirded out like my konsole with 3.2.2 to looking fine with patched 3.2.2.
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2007-03-25 14:14:23 UTC
For the life of me I can't reproduce this.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2007-03-25 15:08:00 UTC
I've added the truetype patch to freetype-2.3.2-r1.  The configure patch is unrelated to this bug.

Thanks for the report.
Comment 12 Eugene C. 2007-03-26 08:01:15 UTC
I discorev some serious (I think) bugs. Antialiasing often hides real bevahiuor of things. So, if you  look at
 
http://img291.imageshack.us/img291/6561/ftbugij9.png

there are a LOTS of such symbols. When I try to use FontForge (compiled with appropriate version&flags of freetype) to debug some (U+0x431, for example) symbols, its crashes with "Invalid 2nd order spline in SplineRefigure2" or "NaN value in spline creation" messages. With freetype-2.1.10 debugging and rendering works, but not really much better. Here is more detailed: 

http://img291.imageshack.us/img291/6561/ftbugij9.png green contours with points 

- new positions after hinting, under windows there are no so strange swap between point#9 and point#10.
Comment 13 Eugene C. 2007-03-26 08:03:46 UTC
I miss, this is correct second image:

http://img133.imageshack.us/img133/1493/fforgedk8.png