From owner-freebsd-gecko@FreeBSD.ORG Tue Jan 11 12:40:47 2011 Return-Path: Delivered-To: gecko@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B81071065670 for ; Tue, 11 Jan 2011 12:40:47 +0000 (UTC) (envelope-from beat@FreeBSD.org) Received: from marvin.chruetertee.ch (marvin.chruetertee.ch [217.150.245.55]) by mx1.freebsd.org (Postfix) with ESMTP id 34D548FC14 for ; Tue, 11 Jan 2011 12:40:46 +0000 (UTC) Received: from daedalus.network.local (167-114.77-83.cust.bluewin.ch [83.77.114.167]) (authenticated bits=0) by marvin.chruetertee.ch (8.14.3/8.14.3) with ESMTP id p0BCejc5070372 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO); Tue, 11 Jan 2011 12:40:45 GMT (envelope-from beat@FreeBSD.org) Message-ID: <4D2C4FCD.2030009@FreeBSD.org> Date: Tue, 11 Jan 2011 13:40:45 +0100 From: Beat Gaetzi User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.16) Gecko/20101210 Lightning/1.0b1 Thunderbird/3.0.11 MIME-Version: 1.0 To: =?UTF-8?B?6KO45aWU55qE6JyX54mb?= References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: gecko@FreeBSD.org Subject: Re: Is possible to add the "configure --enable_system_cairo" as option for the firefox X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2011 12:40:47 -0000 Hi, On 11.01.2011 07:47, 裸奔的蜗牛 wrote: > Hi Gecko, > > I'm using follow patch to improve my system font display. > > http://bugs.gentoo.org/attachment.cgi?id=241939&action=diff&context=patch&collapsed=&headers=1&format=raw > > e.g > 1. save the patch as /tmp/cairo-1.10-cleartype.patch > > 2. reinstall freetype2 > # cd /usr/ports/print/freetype2 && make WITH_LCD_FILTERING=yes && make > deinstall reinstall clean > > 3. reinstall cairo > # cd /usr/ports/graphics/cairo && make extract && cd work/cairo* && patch > -Np1 < /tmp/cairo-1.10-cleartype.patch && cd ../.. && make && make deinstall > reinstall clean > > After that, everythings looks great except the firefox display. I tried to > compare the build options(firefox url "about:buildconfig") with my gentoo > box. It looks like the --enable-system-cairo option made the difference. So > I modify the firefox Makefile and add the option "--enable-system-cairo". I > finally got what I want. But I would like to have an option to choice the > behavior, using system cairo, not hack the Makefile. > > Is possible to add the option for the firefox? Thank you in advance. I assume you are using Firefox 3.6. Firefox was using system cairo until cairo was updated to 1.10.0 because gif and svg image were no longer rendered correctly: http://www.freebsd.org/cgi/getmsg.cgi?fetch=48037+0+/usr/local/www/db/text/2010/cvs-ports/20101205.cvs-ports If you like to revert this change you could use this patch: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/firefox/Makefile,v retrieving revision 1.235 diff -u -r1.235 Makefile --- Makefile 10 Dec 2010 12:43:26 -0000 1.235 +++ Makefile 11 Jan 2011 12:39:21 -0000 @@ -21,7 +21,7 @@ USE_AUTOTOOLS= autoconf213 USE_GECKO= gecko MOZ_PKGCONFIG_FILES= # empty -USE_MOZILLA= -png -nss -dbm -jpeg -xft -cairo +USE_MOZILLA= -png -nss -dbm -jpeg -xft MOZILLA_NAME= Firefox${MOZILLA_SUFX} MOZILLA_SUFX= 3 MOZILLA= ${PORTNAME}${MOZILLA_SUFX} HTH, Beat -- Beat Gätzi | FreeBSD Committer beat@FreeBSD.org | http://www.FreeBSD.org