Hi Steve,
thanks a lot for the patch, we'll look into it. I really hope to release
2.2 this week !
Apart from that, note that the default .deb packages for libfreetype6
enable the
bytecode interpreter by default, this may explain the difference in
rendering.
- David
Steve Langasek a écrit :
On Mon, Mar 06, 2006 at 01:01:28AM -0800, Steve Langasek wrote:
On Sun, Mar 05, 2006 at 11:26:52PM -0800, Steve Langasek wrote:
- gimp segfaults in pango_fc_font_create_metrics_for_context(); this version
of pango is built against freetype 2.1.10, but it's pango 1.10.3 and that
was reported to be new enough that it no longer uses the freetype internal
APIs?
Follow-up on this one: the segfault happens even if libfontconfig1 and
libpango1.0-0 are both rebuilt against freetype 2.2rc4 (using the fontconfig
2.3.2 patch from http://www.freetype.org/freetype2/patches/rogue-patches.html).
Score!
Still digging into it, but it evidently isn't just an issue of ABI skew
between 2.1.7 and 2.2rc4.
Aaaaaaand here we go with a patch. This proved to be an issue with
accidentally requesting allocation of a zero-element array in sfnt/ttmtx.c;
given that there is code directly above this point that explicitly handles
the case of an empty set of short metrics, I can only assume this was an
oversight, which is corrected by the attached diff.
Turns out this was the problem with both gnustep and gimp on my system, as
both were trying to load the same font (BitStream Vera) with metrics that
triggered this problem. So at this point, 2.2rc4 looks pretty good in terms
of compatibility with both Debian sarge (2.1.7) and etch (2.1.10).
Unfortunately, I do have to report that there seems to be a substantial
difference in the rendering of fonts relative to 2.1.7/2.1.10, with the
default fonts (i.e., BitStream Vera) now being rendered much wider than
before. I haven't looked at them side-by-side yet to figure out exactly
what the difference is; perhaps this is an intentional change, but to me it
looks like a regression...
Cheers,
------------------------------------------------------------------------
Index: src/sfnt/ttmtx.c
===================================================================
RCS file: /sources/freetype/freetype2/src/sfnt/ttmtx.c,v
retrieving revision 1.11
diff -u -r1.11 ttmtx.c
--- src/sfnt/ttmtx.c 22 Feb 2006 08:23:35 -0000 1.11
+++ src/sfnt/ttmtx.c 6 Mar 2006 11:27:30 -0000
@@ -169,7 +169,7 @@
}
if ( FT_QNEW_ARRAY( *longs, num_longs ) ||
- FT_QNEW_ARRAY( *shorts, num_shorts ) )
+ (num_shorts > 0 && FT_QNEW_ARRAY( *shorts, num_shorts ) ) )
goto Fail;
if ( FT_FRAME_ENTER( table_len ) )
***********************************************************************************
Information contained in this email message is confidential and may be
privileged, and is intended only for use of the individual or entity named
above. If the reader of this message is not the intended recipient, or the
employee or agent responsible to deliver it to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this communication
in error, please immediately notify the [EMAIL PROTECTED] and destroy the
original message.
***********************************************************************************
_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel