如何为 Three.js 转换字体
- 选择字体: Drag and drop your `.ttf` or `.otf` file into the upload zone.
- 预览: The tool will instantly render a 3D preview of your font using WebGL.
- 设置: (Optional) Use "Restrict Characters" to reduce file size by including only necessary glyphs.
- 下载: Click "Convert & Download" to get your `.json` file.
为什么使用 Typeface.json?
Standard web fonts (WOFF/TTF) cannot be directly extruded into 3D geometry in Three.js. They must first be converted into a geometric description format called `typeface.json`.
This converter handles that process for you, creating a file that contains all the path data needed to generate 3D text meshes in your WebGL applications.