[vtk-developers] Need variable VTK_USE_FONTCONFIG?

David Lonie david.lonie at kitware.com
Thu Aug 2 08:27:45 EDT 2012


On Wed, Aug 1, 2012 at 6:33 PM, Pat Marion <pat.marion at kitware.com> wrote:
> I +1'd the patch, and I don't propose that we keep dragging the topic branch
> along, but I wanted to describe an alternative implementation, I'm curious
> how you guys stand on this.  I don't pretend to fully understand the vtk
> modular system of cross-module object factory overrides with inheritance,
> but it looks fairly complicated.  Maybe fontconfig could be enabled without
> it?

I certainly agree (for this functionality, anyway) that this approach
is at least borderline overkill and seems more complicated than it
should be. I'll let someone else more familiar with the decisions that
went into the modular design reply to your proposal, but I can answer
this:

> A related question, how come ForceCompiledFonts defaults to on?

This was done to preserve behavior. Switching to system dependent
fonts would make image regression testing much more difficult (case
and point -- there are currently 12 baseline images for the test that
exercises FontConfig!). This could be fixed by e.g. forcing compiled
fonts in the test driver instead, but I'd also like to let the code
get some real-world testing before FontConfig is made the default.

Dave



More information about the vtk-developers mailing list