# Fitting vtkTextActor within a bounding box

**URL:** https://discourse.vtk.org/t/fitting-vtktextactor-within-a-bounding-box/3362
**Category:** Support
**Created:** [May 21, 2020, 11:21am UTC](https://discourse.vtk.org/t/fitting-vtktextactor-within-a-bounding-box/3362 "2020-05-21T11:21:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nibba2018](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/e99b99/32.png) [@Nibba2018](https://discourse.vtk.org/u/Nibba2018)
#### Post date: [May 21, 2020, 11:21am UTC](https://discourse.vtk.org/t/fitting-vtktextactor-within-a-bounding-box/3362/1 "2020-05-21T11:21:45Z")

</div>

Hello everyone, I was looking for a method to fit a `vtkTextActor` within a rectangular box having a particular width and height without providing the font size of the Text. In other words, I am looking for a solution in which I provide the height and width of a rectangular box and the TextActor changes its properties in order to wrap itself within that rectangular area.

Thank You.
