freetype2 bug

Jean-Yves Lefort jylefort at FreeBSD.org
Mon Dec 12 11:46:37 PST 2005


On Tue, 13 Dec 2005 03:26:09 +0900
MANTANI Nobutaka <nobutaka at freebsd.org> wrote:

> I found a text rendering problem in freetype2-2.1.10_1 while using xine.
> The problem is that bold texts are rendered upwards.
> 
> Here is a screenshot:
> http://people.freebsd.org/~nobutaka/xine.png
> 
> This is caused by a bug of FT_GlyphSlot_Embolden function in freetype2.
> The bug will affect applications using libXft for text rendering.
> 
> It has already been fixed in CVS version of freetype2.
> May I commit the following patch to freetype2 port?
> 
> Index: Makefile
> ===================================================================
> RCS file: /home/pcvs/ports/print/freetype2/Makefile,v
> retrieving revision 1.65
> diff -u -r1.65 Makefile
> --- Makefile	3 Aug 2005 22:53:12 -0000	1.65
> +++ Makefile	12 Dec 2005 16:34:00 -0000
> @@ -7,7 +7,7 @@
>  
>  PORTNAME=	freetype2
>  PORTVERSION=	2.1.10
> -PORTREVISION=	1
> +PORTREVISION=	2
>  CATEGORIES=	print
>  MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,freetype,} \
>  		http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/%SUBDIR%/ \
> Index: files/patch-src::base::ftsynth.c
> ===================================================================
> RCS file: files/patch-src::base::ftsynth.c
> diff -N files/patch-src::base::ftsynth.c
> --- /dev/null	1 Jan 1970 00:00:00 -0000
> +++ files/patch-src::base::ftsynth.c	12 Dec 2005 16:34:00 -0000
> @@ -0,0 +1,10 @@
> +--- src/base/ftsynth.c.orig	Tue Dec 13 00:44:56 2005
> ++++ src/base/ftsynth.c	Tue Dec 13 00:45:05 2005
> +@@ -123,7 +123,6 @@
> +     if ( !error )
> +     {
> +       slot->advance.x += xstr;
> +-      slot->advance.y += ystr;
> + 
> +       slot->metrics.width        += xstr;
> +       slot->metrics.height       += ystr;

Sure, thanks.

-- 
Jean-Yves Lefort

jylefort at FreeBSD.org
http://lefort.be.eu.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20051212/a4f9409d/attachment.bin


More information about the freebsd-gnome mailing list