facetype.js | typeface.js generator | User Interface library
kandi X-RAY | facetype.js Summary
kandi X-RAY | facetype.js Summary
Useful for text in Three.js.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of facetype.js
facetype.js Key Features
facetype.js Examples and Code Snippets
Community Discussions
Trending Discussions on facetype.js
QUESTION
I downloaded Roboto.ttf font and used typeface.js to convert the font to .json and load it with Three.js
...ANSWER
Answered 2019-May-24 at 19:37The problem here is that your .json file doesn't contain the correct glyphs for the special characters you're using. Three.js recommends using Facetype.js to convert your fonts to .json format.
I just used it to convert Roboto Mono and it works out just fine. As you can see below.
QUESTION
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
...ANSWER
Answered 2018-Aug-06 at 18:59As 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
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install facetype.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page