Reputation: 707
I have 2 different fonts, one with otf extension and the other is with ttf. I want to use it with THREE js, so I converted both to json extension so I can use it with THREE js. I converted it using Facetype.js.
When I used the converted files in THREE js, "O" and "D" and other characters with holes didn't render correctly. Image 1
I converted fonts again by checking "Reverse font direction" option which solved the problem but made another problem: all round characters (U, O, D, G, ...) are not softly rendered. Image 2
Upvotes: 2
Views: 6476
Reputation: 17596
As an option.
When you create THREE.TextGeometry()
/THREE.TextBufferGeometry()
, you pass string of text and an object of parameters. One of those parameters is curveSegments
(default value is 12). You can increase its value to get better shapes of letters.
And keep in mind, that the higher value you use, the more vertices you'll get in the geometry.
r95
Upvotes: 1