[vtk-developers] vtkGL2PSExporter: now with full text support!
Mathieu Malaterre
Mathieu.Malaterre at creatis.insa-lyon.fr
Tue Jun 3 08:39:35 EDT 2003
In Rendering/CMakeList.txt, line 434 I changed:
TARGET_LINK_LIBRARIES(vtk${KIT} -lXt ${CMAKE_X_LIBS})
into
TARGET_LINK_LIBRARIES(vtk${KIT} -lXt -lXmu -lXi ${CMAKE_X_LIBS})
HTH
mathieu
Mathieu Malaterre wrote:
> Prabhu,
> Since I updated VTK with your vtkGL2PSExporter I am getting this
> error when building my project:
>
> /usr/lib/libglut.so.3: undefined reference to `XmuLookupStandardColormap'
>
> This is easy to overcome by adding '-lXmu' in the command line, but
> shouldn't cmake take care of it ?
>
> Thanks
> mathieu
>
> Prabhu Ramachandran wrote:
>
>> Hi folks,
>>
>> I just checked in the code to handle text for vtkGL2PSExporter. I
>> simply needed to add a few lines in vtkOpenGLFreeTypeTextMapper.cxx
>> (with appropriate ifdef guards of course) to handle text for gl2ps.
>> So text support works pretty much completely with support for Shadow,
>> Bold and Italic. TeX output also works fine although shadow text
>> looks horrible. I've attached a sample PostScript file, produced from
>> the example Testgl2ps.py code that I posted earlier, for your
>> enjoyment (its just 5 KB, don't worry!).
>>
>> Please do test the class when you can and let me know if there is
>> something that needs fixing. Also please let me know if I've done
>> something silly when checking in the changes.
>>
>> The only thing left is the culling that Goodwin mentioned but I'll
>> leave that for later when Goodwin joins the party.
>> cheers,
>> prabhu
>>
>
>
--
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/
More information about the vtk-developers
mailing list