# SetFontSize on vtkCubeAxesActor bug?

**URL:** https://discourse.vtk.org/t/setfontsize-on-vtkcubeaxesactor-bug/520
**Category:** Support
**Created:** [March 18, 2019, 8:02pm UTC](https://discourse.vtk.org/t/setfontsize-on-vtkcubeaxesactor-bug/520 "2019-03-18T20:02:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tomtomatron](https://discourse.vtk.org/user_avatar/discourse.vtk.org/tomtomatron/32/331_2.png) [@tomtomatron](https://discourse.vtk.org/u/tomtomatron)
#### Post date: [March 18, 2019, 8:02pm UTC](https://discourse.vtk.org/t/setfontsize-on-vtkcubeaxesactor-bug/520/1 "2019-03-18T20:02:57Z")

</div>

How can I set the font size of the `TitleTextProperty` of a `vtkCubeAxesActor`?

The code below does not result in the specified font size of the `vtkCubeAxesActor` when plotting.

`import vtk`  
`ca = vtk.vtkCubeAxesActor()`  
`ca.GetTitleTextProperty(0).SetFontSize(48)`

---

<div class="post-metadata">

### Author: ![daoprinciple](https://discourse.vtk.org/user_avatar/discourse.vtk.org/daoprinciple/32/2926_2.png) [@daoprinciple](https://discourse.vtk.org/u/daoprinciple)
#### Post date: [January 29, 2021, 8:31am UTC](https://discourse.vtk.org/t/setfontsize-on-vtkcubeaxesactor-bug/520/2 "2021-01-29T08:31:11Z")

</div>

I also get the same issue when trying to control the size of font.  
vtk version: 9.0.1

---

<div class="post-metadata">

### Author: ![tong\_yang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/tong_yang/32/6355_2.png) [@tong\_yang](https://discourse.vtk.org/u/tong_yang)
#### Post date: [January 9, 2023, 2:57am UTC](https://discourse.vtk.org/t/setfontsize-on-vtkcubeaxesactor-bug/520/3 "2023-01-09T02:57:49Z")

</div>

I also get the same issue when trying to control the size of font.  
vtk version: 9.2.2

---

<div class="post-metadata">

### Author: ![akaszynski](https://discourse.vtk.org/user_avatar/discourse.vtk.org/akaszynski/32/10751_2.png) [@akaszynski](https://discourse.vtk.org/u/akaszynski)
#### Post date: [January 31, 2023, 12:16am UTC](https://discourse.vtk.org/t/setfontsize-on-vtkcubeaxesactor-bug/520/4 "2023-01-31T00:16:40Z")

</div>

There’s a workaround for this:

```auto
font_size = 48
import vtk
ca = vtk.vtkCubeAxesActor()
ca.SetScreenSize(font_size / 12 * 10.0)

```
