I use my own system getFile() function to retrieve files from our secure app. I fetched the file helvetiker_regular.typeface.json and then parsed it like so:
let loader = new THREE.FontLoader();
let font = loader.parse( jsonFile);
As you can see in my 3 attachments, the parse method returns a generic object, not an instance of a THREE Font object.
When I use loader.load() method it returns an instance of THREE Font object.
Is this a bug?
Alejandro
I guess you have to do this:
BTW: Even in you “incorrect” result, the result object is an instance of type
THREE.Font
. You just have a wrongdata
property.