So I had this great idea of using Chromium Embedded Framework for a games UI. Nothing new, though some people use wrappers and alternative implementations and whatnot. Somehow I'm the only who uses it in a low-res pixelart kind of game as nobody seems to have had the same problem I have: Getting rid of any kind of anti-aliasing.
The interna of CEF seem to differ from Chromium itself and off-screen rendering seems to affect things as well. I don't use Chromium at all outside of the game, so I don't know if Chromium screws this up in general, but it seems to anti-alias fonts which clearly are bitmap fonts. Cleartype is lost in the process, while Firefox always uses it (even on bitmap fonts). But classic greyscale anti-aliasing is even more problematic.
font-smooth (or variations of it) doesn't seem to work at all (though in some places it is mentioned this would only work on Mac OS X anyway). Tricks like transform don't work because I have no compositing when rendering off-screen, though it probably would make things worse as it only seems to disable Cleartype for some.
By chance I came across two possible solutions, old, probably slow and unmaintained. sIfr and Cufon. One using Flash (no thanks), one rendering on canvas (potentially slow?). Both aren't maintained and seem to have deficits.
No one seems to further pursue such solutions as embedded fonts are solved and there isn't much missing in terms of styling.
Is there a better solution? I came across Cufon only by chance, so I'm wondering if I'm just looking in the wrong places.
Epic visual tool
Epson 5030UB 2D/3D 1080p 3LCD Projector
No comments:
Post a Comment