# Cinder-SdfText: Initial Release (WIP)

**URL:** <https://discourse.libcinder.org/t/cinder-sdftext-initial-release-wip/171>\
**Category:** CinderBlocks\
**Created:** [July 22, 2016, 7:26pm UTC](https://discourse.libcinder.org/t/cinder-sdftext-initial-release-wip/171 "2016-07-22T19:26:05Z")\
**Posts on this page:** 3\
**Page:** 3

<div class="post-metadata">

**Author:** ![chaoticbob](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@chaoticbob](https://discourse.libcinder.org/u/chaoticbob)\
**Post date:** [October 6, 2016, 8:34am UTC](https://discourse.libcinder.org/t/cinder-sdftext-initial-release-wip/171/41 "2016-10-06T08:34:43Z")

</div>

@gabor_papp I made some updates to Cinder-SdfText to address this measureString issues. Please see the issue your filed on GitHub.

Hai

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [October 6, 2016, 9:08am UTC](https://discourse.libcinder.org/t/cinder-sdftext-initial-release-wip/171/42 "2016-10-06T09:08:44Z")

</div>

Thanks Hai! It works nicely. `measureStringRect` is a useful addition. Thanks!

---

<div class="post-metadata">

**Author:** ![SuperRockG](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@SuperRockG](https://discourse.libcinder.org/u/SuperRockG)\
**Post date:** [March 21, 2017, 6:59pm UTC](https://discourse.libcinder.org/t/cinder-sdftext-initial-release-wip/171/43 "2017-03-21T18:59:10Z")

</div>

I am trying to set a color for each run in a gl::SdfTextMesh. Is that possible?

in function… `void SdfTextMesh::draw( bool premultiply, float gamma )`  
the line… `shader->uniform( "uFgColor", gl::context()->getCurrentColor() );`

seems to use the current color in the context but it would be great if runs stored their color and it used that.

At the moment I combine all my text into one gl::SdfTextMesh using appendText for each unique block of text. So that I can then render all my text in one draw call. I can even set a different font for each run but not a color.

Sorry to revive an old thread (if thats forum etiquette here)

[Previous page](https://discourse.libcinder.org/t/cinder-sdftext-initial-release-wip/171.md?page=2)
