# TextActor in multi viewport

**URL:** https://discourse.vtk.org/t/textactor-in-multi-viewport/6269
**Category:** Support
**Created:** [July 30, 2021, 12:19am UTC](https://discourse.vtk.org/t/textactor-in-multi-viewport/6269 "2021-07-30T00:19:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![windhair10](https://discourse.vtk.org/user_avatar/discourse.vtk.org/windhair10/32/3598_2.png) [@windhair10](https://discourse.vtk.org/u/windhair10)
#### Post date: [July 30, 2021, 12:19am UTC](https://discourse.vtk.org/t/textactor-in-multi-viewport/6269/1 "2021-07-30T00:19:34Z")

</div>

I’m coding for a multi viewport framework,(2\*2), want to add a short text message in each viewport using vtkTextActor, but find the SetDisplayPosition is based on the RendererWindow coordinate, which means the position of the text keep the same postion whenever I change the size of the rendererwindow. Is it possible to make the text always located on relative coordinats for each viewport,?

THX

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [July 30, 2021, 8:53pm UTC](https://discourse.vtk.org/t/textactor-in-multi-viewport/6269/2 "2021-07-30T20:53:55Z")

</div>

Hi, friend,

Try setting position with `SetPosition2()` instead. The coordinate system is relative to a viewport: [https://vtk.org/doc/nightly/html/classvtkActor2D.html#a287e2aac3f96c71680fe4682d897c036](https://vtk.org/doc/nightly/html/classvtkActor2D.html#a287e2aac3f96c71680fe4682d897c036) . The docs say it is in normalized coordinates, that is, between 0.0 (0%) and 1.0 (100%) of viewport size.

I hope this helps,

Paulo
