[vtkusers] Rendering fonts crashes OpenGL driver

Goodwin Lawlor goodwin.lawlor at ucd.ie
Thu Jun 17 16:54:30 EDT 2004


Hi All,

I've narrowed down the crashes with vtkActor2D to rendering fonts. The
behaviour is strange: 20pt Arial and smaller crashes the OpenGL driver.
Courier and Times are OK at any size font. Rendering "-" in any font family
at 20pt and smaller crashes...

Could anyone take a guess at what's going on? Does the vtk text mapper
depend on system fonts? It doesn't seems so. Could the fonts be corrupted!?
Or a bad OpenGL driver.

Setup:
Dell Inspiron 8600
ATI Mobility Radeon 9600 Pro Turbo
Windows XP
Latest CVS of vtk

Thanks,

Goodwin

ps:

This script crashes:

vtkTextProperty tprop
 tprop SetFontSize 17
 tprop SetFontFamilyToArial

vtkTextMapper tmapper
 tmapper SetTextProperty tprop
 tmapper SetInput "example text"

vtkActor2D tactor
 tactor SetMapper tmapper
  [tactor GetPositionCoordinate] SetCoordinateSystemToNormalizedViewport
  [tactor GetPositionCoordinate] SetValue 0.1 0.1


vtkRenderer ren
 ren AddActor2D tactor
vtkRenderWindow renwin
 renwin AddRenderer ren
vtkRenderWindowInteractor iren
 iren SetRenderWindow renwin
 iren Initialize






More information about the vtkusers mailing list