# Text Background

**URL:** https://discourse.paraview.org/t/text-background/1598
**Category:** ParaView Support
**Created:** [April 4, 2019, 1:07pm UTC](https://discourse.paraview.org/t/text-background/1598 "2019-04-04T13:07:11Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![gromaxe](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/90ced4/32.png) [@gromaxe](https://discourse.paraview.org/u/gromaxe)
#### Post date: [April 4, 2019, 1:07pm UTC](https://discourse.paraview.org/t/text-background/1598/1 "2019-04-04T13:07:11Z")

</div>

Hello everyone!

Is there a way to set a background color for Text source and Python annotation filters?

I’m making an animation, and changing colors sometimes make text unreadable (like this)  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/4/478b32e1552a2730c2f93373b55bb121cd5ca7be.png)

Having a constant background color would make text always readable for the price of data overlayed by text. But as for me, this is affordable price)

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [April 4, 2019, 1:27pm UTC](https://discourse.paraview.org/t/text-background/1598/2 "2019-04-04T13:27:50Z")

</div>

For the `Text` source and `Python Annotation`, in the GUI it’s under Font Properties. In the Python API there’s an attribute called Color. You can see how to manipulate it through using the Python Trace functionality in the GUI.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 4, 2019, 1:31pm UTC](https://discourse.paraview.org/t/text-background/1598/3 "2019-04-04T13:31:40Z")

</div>

I think that @gromaxe is looking for a text background color. It is not possible to do that easily but seems quite straightforward to implement.

---

<div class="post-metadata">

### Author: ![gromaxe](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/90ced4/32.png) [@gromaxe](https://discourse.paraview.org/u/gromaxe)
#### Post date: [April 4, 2019, 1:31pm UTC](https://discourse.paraview.org/t/text-background/1598/4 "2019-04-04T13:31:51Z")

</div>

Yeah, there is an option to change text color.  
But I am looking for text background color, and I can’t find it

---

<div class="post-metadata">

### Author: ![gromaxe](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/90ced4/32.png) [@gromaxe](https://discourse.paraview.org/u/gromaxe)
#### Post date: [April 4, 2019, 1:32pm UTC](https://discourse.paraview.org/t/text-background/1598/5 "2019-04-04T13:32:44Z")

</div>

Is it impossible or possible, but not easy?)

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [April 4, 2019, 1:34pm UTC](https://discourse.paraview.org/t/text-background/1598/6 "2019-04-04T13:34:23Z")

</div>

It’s very clunky but you could do it with a `Box` source behind it.

---

<div class="post-metadata">

### Author: ![gromaxe](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/90ced4/32.png) [@gromaxe](https://discourse.paraview.org/u/gromaxe)
#### Post date: [April 4, 2019, 1:35pm UTC](https://discourse.paraview.org/t/text-background/1598/8 "2019-04-04T13:35:55Z")

</div>

I was thinking about a plane, but It’s not clear how to pin it to text source location

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [April 4, 2019, 1:40pm UTC](https://discourse.paraview.org/t/text-background/1598/9 "2019-04-04T13:40:51Z")

</div>

Yeah, that’s why the `Box` source or `Plane` source would be clunky. You’d have to manipulate it all the time to get what you want. Maybe a `Programmable Filter` would be slightly better but these are all really just less clunky workarounds because they’re not putting it in a view location which is really what you want.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 4, 2019, 4:56pm UTC](https://discourse.paraview.org/t/text-background/1598/10 "2019-04-04T16:56:22Z")

</div>

Really good idea Igor. I just wrote it up here: [https://gitlab.kitware.com/paraview/paraview/issues/18916](https://gitlab.kitware.com/paraview/paraview/issues/18916). Won’t be available for a release or two, however.
