Re:Empirical Evidence for the Value of Version Control?
by meaty on Monday December 17, 2012 @08:49AM
(#4932212)
You can't really unit test blurry text.
[ Parent
| on HN ]
Re:Empirical Evidence for the Value of Version Control?
by bjourne on Monday December 17, 2012 @09:57AM
(#4932471)
Sure you can. Just render the glyphs into a framebuffer and check the ratio of opaque pixels to semi-transparent ones. The more transparency the blurrier. But I agree with the poster below that it is usually to much trouble and only worth it if your software is deep down in the stack. For example, if you are writing a text rendering system it would make sense for such tests but not otherwise.