# What is the best way to implement 3D text?

**URL:** <https://forum.babylonjs.com/t/what-is-the-best-way-to-implement-3d-text/36518>\
**Category:** Questions\
**Tags:** gui\
**Created:** [December 13, 2022, 10:13am UTC](https://forum.babylonjs.com/t/what-is-the-best-way-to-implement-3d-text/36518 "2022-12-13T10:13:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [December 14, 2022, 2:16pm UTC](https://forum.babylonjs.com/t/what-is-the-best-way-to-implement-3d-text/36518/4 "2022-12-14T14:16:19Z")

</div>

> [@Rainbow\_Doge](#):
>
> I hope my above approach is correct? Hopefully I’m not hacking anything 🤔

That works perfectly fine! Another possible approach could be to pass custom UVs to each box face: [Creating A Box | Babylon.js Documentation (babylonjs.com)](https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set/box) so that only one face is mapped to the texture, but the plane works fine as well.

About different text styles, unfortunately that’s not possible as the text block is drawn as, well, a single block of text. You could get around it by having multiple text blocks, each one with its own style. There was a PR to introduce a StructuredTextBlock that would have this functionality, but it wasn’t completed, but you might want to take a look at the code to see how it’s done [StructuredTextBlock (GUI 2D) by cronvel · Pull Request #11383 · BabylonJS/Babylon.js (github.com)](https://github.com/BabylonJS/Babylon.js/pull/11383)

---

_[View the full topic](https://forum.babylonjs.com/t/what-is-the-best-way-to-implement-3d-text/36518)._
