# Cannot change the font size of texts in a vtkCubeAxesActor

**URL:** https://discourse.vtk.org/t/cannot-change-the-font-size-of-texts-in-a-vtkcubeaxesactor/12106
**Category:** Support
**Created:** [August 6, 2023, 12:05pm UTC](https://discourse.vtk.org/t/cannot-change-the-font-size-of-texts-in-a-vtkcubeaxesactor/12106 "2023-08-06T12:05:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![turnagundam](https://discourse.vtk.org/user_avatar/discourse.vtk.org/turnagundam/32/7572_2.png) [@turnagundam](https://discourse.vtk.org/u/turnagundam)
#### Post date: [August 6, 2023, 12:05pm UTC](https://discourse.vtk.org/t/cannot-change-the-font-size-of-texts-in-a-vtkcubeaxesactor/12106/1 "2023-08-06T12:05:51Z")

</div>

Hello all,

How can I change the font size of texts in a vtkCubeAxesActor? Modifying TextProperty doesn’t work for me

vtkSmartPointer axesActor = vtkSmartPointer::New();  
axesActor-\>SetXTitle(“X”);  
axesActor-\>GetTitleTextProperty(0)-\>SetFontSize(30);  
axesActor-\>GetLabelTextProperty(0)-\>SetFontSize(30);

my vtk version is 9.1.0

Any help is appreciated!
