# Switched from OpenGL to OpenGL2, rescaling of vtkTextActor stopped working

**URL:** https://discourse.vtk.org/t/switched-from-opengl-to-opengl2-rescaling-of-vtktextactor-stopped-working/1678
**Category:** Development
**Created:** [September 2, 2019, 2:54pm UTC](https://discourse.vtk.org/t/switched-from-opengl-to-opengl2-rescaling-of-vtktextactor-stopped-working/1678 "2019-09-02T14:54:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michael23](https://discourse.vtk.org/user_avatar/discourse.vtk.org/michael23/32/837_2.png) [@michael23](https://discourse.vtk.org/u/michael23)
#### Post date: [September 2, 2019, 2:54pm UTC](https://discourse.vtk.org/t/switched-from-opengl-to-opengl2-rescaling-of-vtktextactor-stopped-working/1678/1 "2019-09-02T14:54:42Z")

</div>

Hi,

after re-compiling VTK 7.1 from OpenGL to OpenGL2, the rescaling of vtkTextActor stopped working.  
The size of the text stays the same despite of the viewport/window size.

vtkSmartPointer textActor = vtkSmartPointer::New();  
textActor-\>SetInput(“Hello world”);  
textActor-\>SetTextScaleModeToViewport();  
textActor-\>SetPosition2(10, 40);  
textActor-\>GetTextProperty()-\>SetFontSize(24);  
textActor-\>GetTextProperty()-\>SetColor(1.0, 0.0, 0.0);  
renderer-\>AddActor2D(textActor);

Any ideas why this feature stopped working?

Thank you.  
Best Regards,  
Michael
