Despite my attempts to replicate the demo code, I am unable to successfully render TextGeometry. The necessary font file is correctly uploaded on the server.
var loader = new THREE.FontLoader();
loader.load( 'fonts/open-sans-regular.js', function ( font ) {
const textMaterial = new THREE.MeshBasicMaterial( { color: 0x00ffff } )
const textGeometry = new THREE.TextGeometry('asdfasdfasdfdsf',
{
font: font,
size: 300,
height: 200,
curveSegments: 4,
material: textMaterial
}
)
textGeometry.translate(20, 50)
const mesh = new THREE.Mesh(textGeometry, textMaterial)
scene.add(mesh)
} );