# Chaning the size of vtkCaptionActor2D caption

**URL:** https://discourse.vtk.org/t/chaning-the-size-of-vtkcaptionactor2d-caption/1338
**Category:** Development
**Created:** [July 15, 2019, 4:29pm UTC](https://discourse.vtk.org/t/chaning-the-size-of-vtkcaptionactor2d-caption/1338 "2019-07-15T16:29:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![at123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/at123/32/748_2.png) [@at123](https://discourse.vtk.org/u/at123)
#### Post date: [July 15, 2019, 4:29pm UTC](https://discourse.vtk.org/t/chaning-the-size-of-vtkcaptionactor2d-caption/1338/1 "2019-07-15T16:29:44Z")

</div>

Hello,

I am using vtkCaptionActor2D to label objects and the text is too big. Is there a way to change the size of the text? Correct me if I am wrong but I am quite sure you have to specify Position and Position2 arguments which are of type vtkCoordinates. I don’t know what function, … I would use.

Any help would be greatly appreciated.  
Thanks!

---

<div class="post-metadata">

### Author: ![at123](https://discourse.vtk.org/user_avatar/discourse.vtk.org/at123/32/748_2.png) [@at123](https://discourse.vtk.org/u/at123)
#### Post date: [July 15, 2019, 6:06pm UTC](https://discourse.vtk.org/t/chaning-the-size-of-vtkcaptionactor2d-caption/1338/2 "2019-07-15T18:06:48Z")

</div>

Here is a solution:

captionActor.GetTextActor().SetTextScaleModeToNone()  
captionActor.GetCaptionTextProperty().SetFontSize(fontSize)

Hope it helps!
