Looking to incorporate a custom font into my project, but running into issues and unsure why. Is there a way for three.js to display my font? Check out this Custom Font
"{%static "js/pink.json"%}" --> referring to django's template tagging.
var loader = new THREE.FontLoader();
var font = loader.load( "{%static "js/pink.json"%}", function ( font ) {
var textGeo = new THREE.TextGeometry( "My Text", {
font: font,
size: 3,
height: 3,
} );
var textMaterial = new THREE.MeshPhongMaterial( { color: 0x000000 } );
var mesh = new THREE.Mesh( textGeo, textMaterial );
mesh.position.set( x, y, z );
scene.add( mesh );
Encountering these errors as well: Browser crashing and Duplicate Point