# \#text-geometry

**URL:** https://discourse.threejs.org/tag/text-geometry/264.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Adjust TextGeometry's size to HTML element's size](https://discourse.threejs.org/t/adjust-textgeometrys-size-to-html-elements-size/14754)

<div class="topic-metadata">

**Author:** [@Tee](https://discourse.threejs.org/u/Tee)\
**Replies:** 5\
**Last updated:** [February 22, 2023, 9:10pm UTC](https://discourse.threejs.org/t/adjust-textgeometrys-size-to-html-elements-size/14754 "2023-02-22T21:10:09Z")

</div>

I have some TextGeometry that is supposed to be a 1 to 1 representation of a HTML (h1) element: export default class Title { constructor($el, $scene) { this.scene = $scene; this.title = $el.firstElem…

---

## [Adding Persian text to the scene](https://discourse.threejs.org/t/adding-persian-text-to-the-scene/47026)

<div class="topic-metadata">

**Author:** [@vira\_vira](https://discourse.threejs.org/u/vira_vira)\
**Replies:** 1\
**Last updated:** [January 18, 2023, 1:41pm UTC](https://discourse.threejs.org/t/adding-persian-text-to-the-scene/47026 "2023-01-18T13:41:35Z")

</div>

I use ttf loader and font loader to add text to scene. How can I add a Persian text continuously from right to left to the scene?

---

## [FontLoader - TypeError: Cannot read properties of undefined (reading 'yMax')](https://discourse.threejs.org/t/fontloader-typeerror-cannot-read-properties-of-undefined-reading-ymax/46923)

<div class="topic-metadata">

**Author:** [@rodrigorod](https://discourse.threejs.org/u/rodrigorod)\
**Replies:** 4\
**Last updated:** [January 16, 2023, 2:01pm UTC](https://discourse.threejs.org/t/fontloader-typeerror-cannot-read-properties-of-undefined-reading-ymax/46923 "2023-01-16T14:01:13Z")

</div>

Hello, I’m trying to instantiate FontLoader, but the console retrieves me an error : Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'yMax') at createPaths (chunk-TVP32DZT.js?v=b2f8a5a7…

---

## [Where are located now FontLoader.js and TextGeometry.js?](https://discourse.threejs.org/t/where-are-located-now-fontloader-js-and-textgeometry-js/32478)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.threejs.org/u/animanoir)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 9:06am UTC](https://discourse.threejs.org/t/where-are-located-now-fontloader-js-and-textgeometry-js/32478 "2021-12-08T09:06:32Z")

</div>

I always need to move them into their old location because I can’t find them anymore…

---

## [Can't save json data in mysql](https://discourse.threejs.org/t/cant-save-json-data-in-mysql/26663)

<div class="topic-metadata">

**Author:** [@11152Igor](https://discourse.threejs.org/u/11152Igor)\
**Replies:** 3\
**Last updated:** [May 27, 2021, 12:23pm UTC](https://discourse.threejs.org/t/cant-save-json-data-in-mysql/26663 "2021-05-27T12:23:39Z")

</div>

when i add to scene textGeometry, and try save it, get this message: string(226) “You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'st…

---

## [How to change text geometry on each key type](https://discourse.threejs.org/t/how-to-change-text-geometry-on-each-key-type/20791)

<div class="topic-metadata">

**Author:** [@Boris\_Bek](https://discourse.threejs.org/u/Boris_Bek)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 3:35pm UTC](https://discourse.threejs.org/t/how-to-change-text-geometry-on-each-key-type/20791 "2020-11-17T15:35:31Z")

</div>

Hello I have a case where I need to achieve the same result as in the picture do I need to remove mesh on every input change and create a new mesh and add on seen let’s say for removing the letter in the text mesh.…

---

## [Handle multiple instances of TextGeometry](https://discourse.threejs.org/t/handle-multiple-instances-of-textgeometry/18024)

<div class="topic-metadata">

**Author:** [@niklas\_moller](https://discourse.threejs.org/u/niklas_moller)\
**Replies:** 1\
**Last updated:** [August 20, 2020, 2:02pm UTC](https://discourse.threejs.org/t/handle-multiple-instances-of-textgeometry/18024 "2020-08-20T14:02:09Z")

</div>

Hi, I have a JSON object containing multiple words and would like to display them one at a time, updating every second. Which is the best way to do this? Should I update the TextGeometry inside the mesh or should I crea…

---

## [Rendering text without the memory performance impact](https://discourse.threejs.org/t/rendering-text-without-the-memory-performance-impact/8461)

<div class="topic-metadata">

**Author:** [@osswmi](https://discourse.threejs.org/u/osswmi)\
**Replies:** 4\
**Last updated:** [July 11, 2019, 8:48pm UTC](https://discourse.threejs.org/t/rendering-text-without-the-memory-performance-impact/8461 "2019-07-11T20:48:32Z")

</div>

Earlier this year I dove into Three.JS for the first time. My first small project was creating a small play at home version of The Weakest Link game seen here:https://www.youtube.com/watch?v=suu5tBtODwg. When I created t…

---

## [Can't Get Text Geometry to show](https://discourse.threejs.org/t/cant-get-text-geometry-to-show/770)

<div class="topic-metadata">

**Author:** [@yorunii](https://discourse.threejs.org/u/yorunii)\
**Replies:** 13\
**Last updated:** [February 16, 2019, 4:46pm UTC](https://discourse.threejs.org/t/cant-get-text-geometry-to-show/770 "2019-02-16T16:46:02Z")

</div>

Hi, I’m running an instance of TextGeometry, but I can’t seem to get it to show. Can someone please take a look? https://jsfiddle.net/yorunii/Lf15u2ev/ Thank you

---

## [\[SOLVED\] Gradient to TextGeometry](https://discourse.threejs.org/t/solved-gradient-to-textgeometry/1603)

<div class="topic-metadata">

**Author:** [@lucagentile](https://discourse.threejs.org/u/lucagentile)\
**Replies:** 8\
**Last updated:** [January 16, 2018, 8:06pm UTC](https://discourse.threejs.org/t/solved-gradient-to-textgeometry/1603 "2018-01-16T20:06:51Z")

</div>

Hello, I’m having trouble in modifying a gradient applied to a TextGeometry. https://codepen.io/lucgenti/pen/WdybLg The gradient I’m trying to apply is this one: https://jsfiddle.net/lucav/zLw1jw80/ I took the algor…

---

## [How to get text from Textgeometry](https://discourse.threejs.org/t/how-to-get-text-from-textgeometry/1493)

<div class="topic-metadata">

**Author:** [@dev](https://discourse.threejs.org/u/dev)\
**Replies:** 1\
**Last updated:** [December 22, 2017, 5:09am UTC](https://discourse.threejs.org/t/how-to-get-text-from-textgeometry/1493 "2017-12-22T05:09:22Z")

</div>

Hii, can we get text that we enter from textgeometry which we have added in scene.as shown in code below.I want the HELLO text from textgeometry. textGeo = new THREE.TextGeometry( “HELLO”, { font: font, size: size, …
