I have been having fun working with threejs recently. To create a 2d text in threejs application I have to create a canvas, populate the canvas with the text and add the canvas as a texture. Like it is done in this example. http://stemkoski.github.io/Three.js/Texture-From-Canvas.html
For the text I am using a custom font and I have two options to embed the font to the application. using css3 @font-face
or by including the font as a typeface javascript after converting in this site. http://typeface.neocracy.org/
I wish to know what additional disadvantages one has compared to the other in addition to the one I listed here.
using @font-face
- Fonts are loaded after the elements are loaded which requires additional workaround Drawing text to <canvas> with @font-face does not work at the first time
using typeface
- when fonts are converted to typeface files their sizes are growing more than twice.
Thanks in Advance.