1const loader = new THREE.FontLoader();
2
3loader.load('../resources/threejs/fonts/helvetiker_regular.typeface.json', (font) => {
4 const text = 'three.js';
5 const geometry = new THREE.TextGeometry(text, {
6 font: font,
7 size: 5.2,
8 height: 4.9,
9 curveSegments: 4,
10 bevelEnabled: true,
11 bevelThickness: 0.15,
12 bevelSize: 0.3,
13 bevelSegments: 5,
14 });
15 ...
16});