Txt – A canvas font and typesetting engine
1–10 of 21 posts
Re: Txt – A canvas font and typesetting engine
#2Re: Txt – A canvas font and typesetting engine
#3Re: Txt – A canvas font and typesetting engine
#4I'm having a hard time imagining when this would be preferable to SVG text.
Re: Txt – A canvas font and typesetting engine
#5Re: Txt – A canvas font and typesetting engine
#6I'm having a hard time imagining when this would be preferable to SVG text.
I'm sure it works well in the context where you are already using canvas, perhaps for a video game.
I found that an absolutely positioned div beat the pants off the performance of rendering text to canvas in almost all scenarios. In fact, I would almost never espouse layering of canvas rendering, and rather propose the layering of elements themselves and letting markup engines take care of the composition.
Re: Txt – A canvas font and typesetting engine
#7Re: Txt – A canvas font and typesetting engine
#8I'm having a hard time imagining when this would be preferable to SVG text.
I used to get a good frame rate even on my ancient iPhone 3G. I used simple old-school style bitmap fonts there, though. More retro ;)
Re: Txt – A canvas font and typesetting engine
#9Re: Txt – A canvas font and typesetting engine
#10I'm having a hard time imagining when this would be preferable to SVG text.
Most of the features in txtjs can easily be ported to SVG as the primary renderer required is SVGPath. FontLoader/Fonts would require zero change but new controls would need to subclass SVG elements. I am very interested in seeing better text in SVG as well as on for creative use.