I made a 3D text created using textGeometry.
The problem is that the spaces in the letters are turned into question marks.
What can I do to solve this problem? This is my code.
const loader = new FontLoader();
const font = loader.parse(FontJSON);
const textGeometry = new TextGeometry("abc de f", {
font,
size: 50,
height: 10,
curveSegments: 12,
bevelEnabled: true,
bevelThickness: 3,
bevelSize: 1,
bevelOffset: 0,
bevelSegments: 12,
});
const textMaterial = new THREE.MeshNormalMaterial();
textMesh = new THREE.Mesh(textGeometry, textMaterial);
textMesh.position.set(0, 0, -240);
textMesh.geometry.center();
init();