[vtk-developers] Need variable VTK_USE_FONTCONFIG?
Pat Marion
pat.marion at kitware.com
Wed Aug 1 18:33:49 EDT 2012
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?
In the current implementation, the user enables fontconfig by calling a
function in the FreeType module:
vtkFreeTypeTools::GetInstance()->ForceCompiledFontsOff();
Instead, it could be enabled by calling a function in the FontConfig
module, something like:
static void vtkFontConfig::EnableFontConfig()
{
vtkFreeTypeTools::GetInstance()->RegisterFontFaceFactory
(vtkFontConfigFontFaceFactory::New());
}
A related question, how come ForceCompiledFonts defaults to on?
Pat
On Wed, Aug 1, 2012 at 9:52 AM, David Lonie <david.lonie at kitware.com> wrote:
> On Mon, Jul 30, 2012 at 2:33 PM, David Lonie <david.lonie at kitware.com>
> wrote:
> > On Mon, Jul 30, 2012 at 1:42 PM, Brad King <brad.king at kitware.com>
> wrote:
> >> On 07/30/2012 01:24 PM, Utkarsh Ayachit wrote:
> >>> I think in that case the real solution is to create a "new module"
> >>> that gets built, or not, not based on FONTCONFIG is found/enabled, or
> >>> not.
> >>
> >> Correct. If the module is on then it requires fontconfig. If the
> >> module is off then nothing even searches for fontconfig. The option
> >> is for switching the module on or off just like any other module.
> >
> > Ok -- I'll make another pass at this.
>
> A patch for a modularized FontConfig implementation is here:
>
> http://review.source.kitware.com/#/t/988/
>
> Dave
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120801/01948d73/attachment.html>
More information about the vtk-developers
mailing list