Is there a way to disable font smoothing?
Posted: Sat Jan 02, 2016 11:48 am
I'm using off-screen rendering to render an interface for my game. I use a pixelart-esque font for all my text as it is more fitting stylistically. However cef decides to use anti-aliasing to draw the font. I can't seem to find a way to disable it. Using css, font-smooth and -webkit-font-smoothing don't seem to do anything. As the actual result of the rendering process is drawn at twice the scale in my application the effect this has on the integrity of the pixelfont is terrible.
Firefox does not draw the text this way. I'm not certain about Chrome. I don't use Chrome personally and font rendering seemed to differ on the two machines I've tested it on.
So far I'm using a workaround. Drawing every text on canvas using cufon. However cufon is neither a modern solution, nor actively developed.
Firefox does not draw the text this way. I'm not certain about Chrome. I don't use Chrome personally and font rendering seemed to differ on the two machines I've tested it on.
So far I'm using a workaround. Drawing every text on canvas using cufon. However cufon is neither a modern solution, nor actively developed.