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?<br>

<br>In the current implementation, the user enables fontconfig by calling a function in the FreeType module:<br><br><span>vtkFreeTypeTools</span><span>::</span><span>GetInstance</span><span>()-></span><span>ForceCompiledFontsOff</span><span>();</span><br>


<br>Instead, it could be enabled by calling a function in the FontConfig module, something like:<br><br>static void vtkFontConfig::EnableFontConfig()<br>{<br>  <span>vtkFreeTypeTools</span><span>::</span><span>GetInstance</span><span>()->RegisterFontFaceFactory</span><span>(vtkFontConfigFontFaceFactory::New());</span><br>

}<br><br><br>A related question, how come ForceCompiledFonts defaults to on?<br><br>Pat<br><br><br><div class="gmail_quote">On Wed, Aug 1, 2012 at 9:52 AM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Mon, Jul 30, 2012 at 2:33 PM, David Lonie <<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>> wrote:<br>



> On Mon, Jul 30, 2012 at 1:42 PM, Brad King <<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>> wrote:<br>
>> On 07/30/2012 01:24 PM, Utkarsh Ayachit wrote:<br>
>>> I think in that case the real solution is to create a "new module"<br>
>>> that gets built, or not, not based on FONTCONFIG is found/enabled, or<br>
>>> not.<br>
>><br>
>> Correct.  If the module is on then it requires fontconfig.  If the<br>
>> module is off then nothing even searches for fontconfig.  The option<br>
>> is for switching the module on or off just like any other module.<br>
><br>
> Ok -- I'll make another pass at this.<br>
<br>
</div>A patch for a modularized FontConfig implementation is here:<br>
<br>
<a href="http://review.source.kitware.com/#/t/988/" target="_blank">http://review.source.kitware.com/#/t/988/</a><br>
<div><div><br>
Dave<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br>