It’s now possible to get sub-pixel font rendering by creating an opaque canvas context. In Safari and Chrome you can get this using this snippet:
var ctx = canvas.getContext("2d", {alpha: false})
I found this from this blog post.
More Related Contents:
- Poor anti-aliasing of text drawn on Canvas
- Html5 canvas drawImage: how to apply antialiasing
- HTML5 Canvas and Anti-aliasing [duplicate]
- HTML5 Canvas Rotate Image
- html5 – canvas element – Multiple layers
- How to Copy Contents of One Canvas to Another Canvas Locally
- HTML text input field with currency symbol
- Setting a max character length in CSS
- How to stop text from taking up more than 1 line?
- Drawing text to with @font-face does not work at the first time
- HTML: Changing colors of specific words in a string of text
- Dual-Color Text
- How to change the opacity (alpha, transparency) of an element in a canvas element?
- using HTML5 Canvas – rotate image about arbitrary point
- How to make rooftext effect and valley text effect in HTML5 (or Fabric.js)
- get click event of each rectangle inside canvas?
- HTML5 Canvas getImageData and Same Origin Policy
- Arabic characters from html content to pdf using iText
- How can I write text on a HTML5 canvas element?
- Animated GIF in HTML5 canvas
- Chart.js canvas resize
- Drawing a dot on HTML5 canvas [duplicate]
- Placing a within a
- Combining two or more Canvas elements with some sort of blending
- All html canvas shapes are given the color of the last object added
- How to apply font anti-alias effects in CSS? [duplicate]
- Draw SVG on HTML5 Canvas with support for font element
- Canvas text rendering (blurry)
- How to place Text and an Image next to each other in HTML?
- CSS triangle containing text