I've inserted a boxgeometry into the scene with the intention of adding text to indicate the side of the cube. However, I am encountering difficulties in incorporating textgeometry into the scene.
This is my code:
const loader = new FontLoader();
loader.load( 'fonts/helvetiker_regular.typeface.json',
function ( font ) { const geometry = new TextGeometry( 'Hello three.js!', { font: font, size: 80, height: 5, curveSegments: 12, bevelEnabled: true, bevelThickness: 10, bevelSize: 8, bevelOffset: 0, bevelSegments: 5 } ); } );
I have saved the helvetiker_regular.typeface.json file in the fonts directory but was unable to retrieve the path. Any suggestions or assistance would be highly appreciated