MantisBT - VTK
View Issue Details
0007199VTK(No Category)public2008-06-17 14:512009-12-14 15:42
Sean McBride 
Sean McBride 
highmajorN/A
closedfixed 
 
 
0007199: VTK's freetype is out of date. Currently version 2.3.6 includes security fixes.
VTK should update its freetype from 2.3.5 to 2.3.6. The update includes important security fixes.

I have a patch, just need to let all the unit tests run...
No tags attached.
has duplicate 0007705closed David Cole vtkfreetype will not compile on OS X when SDK is set to 10.4u and compiling on OS X 10.5 
related to 0008513closed Sean McBride VTK's freetype is out of date: 2.3.7 is used, 2.3.11 is current 
related to 0010052closed Kitware Robot newer freetypes render differently and breaks VTK unit tests / VTK fonts are incorrect(?) 
png multiLineText2.3.5.png (15,969) 2009-01-02 12:04
https://www.vtk.org/Bug/file/6973/multiLineText2.3.5.png
png

png multiLineText2.3.7.png (15,150) 2009-01-02 12:05
https://www.vtk.org/Bug/file/6974/multiLineText2.3.7.png
png
Issue History
2008-06-17 14:51Sean McBrideNew Issue
2008-06-17 14:51Sean McBrideStatusbacklog => tabled
2008-06-17 14:51Sean McBrideAssigned To => Sean McBride
2008-07-18 17:59Sean McBrideNote Added: 0012753
2008-09-18 12:57Sean McBrideRelationship addedhas duplicate 0007705
2008-09-18 13:08Mike JacksonNote Added: 0013515
2008-12-25 17:48Sean McBrideNote Added: 0014441
2008-12-26 00:01Sean McBrideNote Added: 0014442
2009-01-02 11:58Sean McBrideNote Edited: 0014442
2009-01-02 12:04Sean McBrideFile Added: multiLineText2.3.5.png
2009-01-02 12:05Sean McBrideFile Added: multiLineText2.3.7.png
2009-01-02 12:05Sean McBrideNote Added: 0014460
2009-01-02 12:05Sean McBrideNote Edited: 0014460
2009-01-08 11:52Sean McBrideNote Added: 0014490
2009-02-10 18:57Sean McBrideStatustabled => @80@
2009-02-10 18:57Sean McBrideResolutionopen => fixed
2009-12-10 20:26Sean McBrideRelationship addedrelated to 0008513
2009-12-14 15:41Sean McBrideRelationship addedrelated to 0010052
2009-12-14 15:42Sean McBrideStatus@80@ => closed
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0012753)
Sean McBride   
2008-07-18 17:59   
Unfortunately, 2.3.6 breaks some VTK unit tests. The reason is that freetype renders the fonts in VTK differently. The results are worse, with 'l' and 'i' looking very similar. This could be a freetype bug, or a bug in the font itself.

Werner (freetype dev) thinks: "I suspect that the font is badly hinted; it seems to miss hints (both ghost and normal) at least for the `i'. This, in combination with a not-yet fixed problem within FreeType (which sometimes displaces horizontal strokes too much vertically) probably causes the effects you can see."

We need to convert the VTK C++-ified fonts to a standard format so that Werner can debug.
(0013515)
Mike Jackson   
2008-09-18 13:08   
Does 2.3.7 help any on the unit tests? The fix for bug 7705 is in 2.3.7 so moving to 2.3.7 would help this out.
(0014441)
Sean McBride   
2008-12-25 17:48   
No Mike, I'm afraid 2.3.7 does not help.

Note to self: multiLineTextPython is the best test to see the problems.
(0014442)
Sean McBride   
2008-12-26 00:01   
(edited on: 2009-01-02 11:58)
After painstaking regression through freetype CVS, the source of the problem was committed on 2008-05-18:

    * src/pshinter/pshalgo.c (ps_hints_apply): Reset scale values after
    correction for pixel boundary. Without this patch, the effect can
    be cumulative under certain circumstances, making glyphs taller and
    taller after each call. This fixes Savannah bug #19976.

https://savannah.nongnu.org/bugs/?19976 [^]

(0014460)
Sean McBride   
2009-01-02 12:05   
I have attached to this bug the unit test results with 2.3.5 and 2.3.7. Notice how the 'i' character looks much worse in 2.3.7.

(0014490)
Sean McBride   
2009-01-08 11:52   
committed 2.3.7 (with change to pshalgo.c to restore old behaviour) a few minutes ago...