# Is it possible to create a text geometry without a font?

**URL:** <https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390>\
**Category:** Questions\
**Tags:** text\
**Created:** [October 5, 2018, 6:10pm UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390 "2018-10-05T18:10:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jauregui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jauregui/32/5119_2.png) [@jauregui](https://discourse.threejs.org/u/jauregui)\
**Post date:** [October 5, 2018, 6:10pm UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/1 "2018-10-05T18:10:04Z")

</div>

Is it possible to create a simple text without loading any font file???

\*Maybe I’m confused, once I saw an example creating a simple flat Geometry text without loading any font (now I can not find it, probably I got confused).

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [October 5, 2018, 6:25pm UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/2 "2018-10-05T18:25:37Z")

</div>

Do you mean that example?  
[https://threejs.org/examples/?q=text#webgl\_geometry\_text\_shapes](https://threejs.org/examples/?q=text#webgl_geometry_text_shapes)

Also, you can define/create your own font (great example from @hofk):  
[https://discourse.threejs.org/t/how-many-ways-to-load-a-font-in-three-js/2054/17?u=prisoner849](https://discourse.threejs.org/t/how-many-ways-to-load-a-font-in-three-js/2054/17?u=prisoner849)

---

<div class="post-metadata">

**Author:** ![jauregui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jauregui/32/5119_2.png) [@jauregui](https://discourse.threejs.org/u/jauregui)\
**Post date:** [October 5, 2018, 8:34pm UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/3 "2018-10-05T20:34:47Z")

</div>

Thanks, probably is, maybe I missed the font object that was already loaded before create geometry.

maybe no way to create text without loading font file…

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [October 5, 2018, 8:50pm UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/4 "2018-10-05T20:50:19Z")

</div>

> [@jauregui](#):
>
> maybe no way to create text without loading font file…

I’ve never seen something like this in the official examples. At least when we talk about geometries. You can still render text on a canvas element and use it as a texture.

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [October 5, 2018, 8:54pm UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/5 "2018-10-05T20:54:11Z")

</div>

Just reminded me about this:  
[https://stemkoski.github.io/Three.js/Texture-From-Canvas.html](https://stemkoski.github.io/Three.js/Texture-From-Canvas.html)

---

<div class="post-metadata">

**Author:** ![jauregui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/jauregui/32/5119_2.png) [@jauregui](https://discourse.threejs.org/u/jauregui)\
**Post date:** [October 5, 2018, 11:22pm UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/6 "2018-10-05T23:22:36Z")

</div>

It is a good option… thanks guys

---

<div class="post-metadata">

**Author:** ![MassoudSharifi](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/massoudsharifi/32/43702_2.png) [@MassoudSharifi](https://discourse.threejs.org/u/MassoudSharifi)\
**Post date:** [June 4, 2024, 7:35am UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/7 "2024-06-04T07:35:11Z")

</div>

@Mugen87 can we add thickness to texts in Canvas? to show texts with a thickness in 3d

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [June 4, 2024, 9:29am UTC](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/8 "2024-06-04T09:29:33Z")

</div>

What I mean in [Is it possible to create a text geometry without a font? - #4 by Mugen87](https://discourse.threejs.org/t/is-it-possible-to-create-a-text-geometry-without-a-font/4390/4) was to use a canvas as a texture on a plane surface. This approach is normally used for labels. If you are looking for an extruded 3D geometry, you need a font so it is possible to generate a real (triangulated) shape that can then be extruded with a custom depth value.
