View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010052VTK(No Category)public2009-12-14 15:402016-08-12 09:55
ReporterSean McBride 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0010052: newer freetypes render differently and breaks VTK unit tests / VTK fonts are incorrect(?)
DescriptionIf you use VTK_USE_SYSTEM_FREETYPE and your freetype is 2.3.6 or newer, some VTK unit tests will fail. See attached images.

This problem exists, but is worked around, in VTK's CVS version of freetype (2.3.11 at this time).

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 [^]

Werner (a 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. I have no idea how. Anyone?
TagsNo tags attached.
Project
Type
Attached Filespng file icon multiLineText2.3.5.png [^] (15,969 bytes) 2009-12-14 15:41


png file icon multiLineText2.3.7.png [^] (15,150 bytes) 2009-12-14 15:42

 Relationships
related to 0007199closedSean McBride VTK's freetype is out of date. Currently version 2.3.6 includes security fixes. 
related to 0008513closedSean McBride VTK's freetype is out of date: 2.3.7 is used, 2.3.11 is current 

  Notes
(0018941)
Sean McBride (developer)
2009-12-17 11:01

from Werner:

"I'm now rather convinced that there is no bug. I've attached
a small PDF file which uses uagk8a.pfb as in the two
multiLineText images, displaying the two letter `S' and `e'.
I've also attached an image of acroread 7.0.8 (on GNU/Linux),
rendering the small document so that the glyphs have
approximately the same size. It looks (almost) the same as with
FreeType 2.3.7 -- considering acroread as one of the reference
implementations for rendering PS fonts natively, I doubt that
this result can be improved. "
(0037129)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2009-12-14 15:40 Sean McBride New Issue
2009-12-14 15:41 Sean McBride Relationship added related to 0007199
2009-12-14 15:41 Sean McBride File Added: multiLineText2.3.5.png
2009-12-14 15:42 Sean McBride File Added: multiLineText2.3.7.png
2009-12-14 15:42 Sean McBride Relationship added related to 0008513
2009-12-17 11:01 Sean McBride Note Added: 0018941
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037129
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team