I just achieved the 3D part of the text() function (ticket) in Processing.js. So far the test look identical compared with the same code in Processing.
Screenshot and Test
existence problem
the performance is too bad. almost 80% of time is spending on the text() function.
hope somebody can figure out a way to re-use the texture, so that it doesn't need to re-create texture when everytime it runs.