# Annotations are missing text stroke

**URL:** <https://discourse.bokeh.org/t/annotations-are-missing-text-stroke/9261>\
**Category:** Community Support\
**Created:** [May 31, 2022, 8:12pm UTC](https://discourse.bokeh.org/t/annotations-are-missing-text-stroke/9261 "2022-05-31T20:12:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxxner](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/maxxner/32/4820_2.png) [@Maxxner](https://discourse.bokeh.org/u/Maxxner)\
**Post date:** [May 31, 2022, 8:12pm UTC](https://discourse.bokeh.org/t/annotations-are-missing-text-stroke/9261/1 "2022-05-31T20:12:20Z")

</div>

It seems like annotations do not support text stroke, at least I was unable to find such a property.  
Is this an intentional design decision or is there just simply no priority/demand for this feature?

---

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [May 31, 2022, 8:15pm UTC](https://discourse.bokeh.org/t/annotations-are-missing-text-stroke/9261/2 "2022-05-31T20:15:52Z")

</div>

Annotations are drawn using the browser’s HTML Canvas API, which does not support strikethrough.

---

<div class="post-metadata">

**Author:** ![Maxxner](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/maxxner/32/4820_2.png) [@Maxxner](https://discourse.bokeh.org/u/Maxxner)\
**Post date:** [May 31, 2022, 8:20pm UTC](https://discourse.bokeh.org/t/annotations-are-missing-text-stroke/9261/3 "2022-05-31T20:20:48Z")

</div>

Am I not referring to strikethrough but **stroke** text:

> **[CanvasRenderingContext2D.strokeText() - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText)**
>
> The CanvasRenderingContext2D method
> strokeText(), part of the Canvas 2D API, strokes — that
> is, draws the outlines of — the characters of a text string at the specified
> coordinates. An optional parameter allows specifying a maximum width for...

---

<div class="post-metadata">

**Author:** ![Bryan](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/bryan/32/3625_2.png) [@Bryan](https://discourse.bokeh.org/u/Bryan)\
**Post date:** [May 31, 2022, 8:40pm UTC](https://discourse.bokeh.org/t/annotations-are-missing-text-stroke/9261/4 "2022-05-31T20:40:49Z")

</div>

Oh, in that case, yes it’s due to lack of demand. AFAIK you are the first person to ask about it in ~10 years. Please feel free to open a [GitHub Issue](https://github.com/bokeh/bokeh/issues) if you’d like to make a feature request. But do be specific about your use-cases. Text can appear in lots of places and I am not sure it would make sense to try and add separate stroke vs fill options to all of them. Alternatively, maybe a simple boolean flag that toggles between `strokeText` vs `fillText` would suffice.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads.bokeh.org/original/2X/1/14eb24f9e10e4e9b78e3f10f66c04ffa96446e5a.svg) [@system](https://discourse.bokeh.org/u/system)\
**Post date:** [August 29, 2022, 8:41pm UTC](https://discourse.bokeh.org/t/annotations-are-missing-text-stroke/9261/5 "2022-08-29T20:41:41Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
