javascript - What is the best way to draw text on an HTML canvas element? -
Canvas element unfortunately does not handle text properly There are a bunch of approaches (see examples), but they Most look like hacks. What can I do, which is cross-platform and gives me the flexibility to make my fonts?
Have you seen typefase.js? I have heard that it is great to write this text here from their site:
"Typeface J. Browser uses vector drawing cabilitas for text in HTML documents. A good time For this, the browser has got support for vector drawing - Firefox, Safari and Opera support support element (as well as SVG), and IEM.
Typeface. Two components of JS project The Javascript library for drawing the pearl module, and drawing in the browser, converts the glyph outline information from the truetype fonts, and writes that the data is in JSON format, then the Javascript library is going to the HTML document and In a browser that supports VML to attract the globe & lt; canvas & gt; Lesson You should be confident, but you should have faith as you choose, there is no response, no highlight, you know that it is working. The purpose of future work is to select the text with highlights, cross -Browser support is to be implemented. "(Excerpt from)
Comments
Post a Comment