# How to set the property for a 3D text?

**URL:** https://discourse.vtk.org/t/how-to-set-the-property-for-a-3d-text/7528
**Category:** Support
**Created:** [December 30, 2021, 9:30am UTC](https://discourse.vtk.org/t/how-to-set-the-property-for-a-3d-text/7528 "2021-12-30T09:30:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zhang-qiang-github](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhang-qiang-github/32/2519_2.png) [@zhang-qiang-github](https://discourse.vtk.org/u/zhang-qiang-github)
#### Post date: [December 30, 2021, 9:30am UTC](https://discourse.vtk.org/t/how-to-set-the-property-for-a-3d-text/7528/1 "2021-12-30T09:30:10Z")

</div>

I want to add 3D text in my application, and `vtkVectorText` may help:

```auto
vtkSmartPointer<vtkVectorText> text = vtkSmartPointer<vtkVectorText>::New();
text->SetText("hello, world");
text->Update();

vtkSmartPointer<vtkPolyDataMapper> mapper = vtkSmartPointer<vtkPolyDataMapper>::New();
mapper->SetInputData(text->GetOutput());

vtkSmartPointer<vtkActor> actor = vtkSmartPoint<vtkActor>::New();
actor->SetMapper(mapper);

```

However, how can I set the property for this 3D text?

For 2D text, I can use `vtkTextMapper` to show it and `vtkTextMapper::GetTextProperty` to set the property. For example: `SetFontFamily(), SetFontSize, SetLineSpacing, SetBold, FrameOn` and so on. I wonder whether the `vtkTextProperty` can be apply to vtkVectorText?

Or is there another method to display 3D text, which allowing the property settting like `vtkTextProperty`?
