Does anyone know why my three.js fonts aren’t working?
const loaderF = new THREE.FontLoader();
let regFont;
loaderF.load( 'helvetiker_regular.typeface.json', function ( font) {var mat = {color: 0x787878, metalness: 0.0};
var regFont = font;
var geometry = new THREE.TextGeometry('Hello three.js!', font);
var txt = new THREE.Mesh(geometry, new THREE.MeshStandardMaterial(mat));
scene.add(txt);
} );
I have used Google and the docs but nothing has worked (I’m using replit).