freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Incremental font support


From: Ralph Giles
Subject: Re: [ft-devel] Incremental font support
Date: Sat, 21 Feb 2009 13:26:37 -0800

On Wed, Feb 18, 2009 at 7:59 AM, Henry Stiles <address@hidden> wrote:

> To reproduce the problem build ghostscript with freetype and send any
> postscript job with a type1 or type42 font, here is a simple test:
>
> /Palatino-Italic findfont 20 scalefont setfont 250 250 moveto (freetype)
> show showpage

Just an update, as of r9503 I've merged by freetype changes into the
mainline ghostscript svn repository.

So, to reproduce, build freetype, enabling
FT_CONFIG_OPTION_INCREMENTAL in
freetype2/include/freetype/config/ftoption.h

Then build gs with:

make FT_BRIDGE=1 FT_CFLAGS=-I../freetype-2.3.8/include
FT_LIBS=../freetype-2.3.8/objs/libfreetype.a debug

or with msvc:

nmake -f psi\msvc32.mak FT_ROOT=..\freetype-2.3.8

Run Henry's example and get:

GPL Ghostscript SVN PRE-RELEASE 8.65: Error: Font Renderer Plugin (
FreeType ) return code = -1
Font Palatino-Italic is mapped to FAPI=FreeType
Error: /unknownerror in --.FAPIBuildChar--

Remove the 'if ( glyph_index >= face->root.num_glyphs )' clause at
t1gload.c:287, and the test example renders.

So, what can we do to fix this? The check was added when the glyph id
bounds checking as moved from FT_Load_Glyph to resolve
http://savannah.nongnu.org/bugs/?18301.

 -r




reply via email to

[Prev in Thread] Current Thread [Next in Thread]