ThreeJS secretly supports True Type Fonts

Josh Marinacci
Sep 13, 2018 · 1 min read
const fontLoader = new THREE.FontLoader()
loader.load('./myfont.json',fnt => font = fnt)
const loader = new THREE.TTFLoader()
const fontLoader = new THREE.FontLoader()
loader.load('./hobby-of-night.ttf',fnt => font = fontLoader.parse(fnt))

Josh Marinacci

Written by

Sr Dev Advocate for Mozilla Mixed Reality

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade