DescriptionAdd LCD support for distance field text.
LCD support is handled by shifting the uv coordinate by 1/3 of a pixel (transformed by the inverse CTM) to the left and right of the original texture coordinate, and using left, center, and right lookups to set the RGB values. This supports both RGB and BGR subpixel order.
BUG=skia:2173
Committed: http://code.google.com/p/skia/source/detail?r=14049
Patch Set 1 #Patch Set 2 : Create separate effect to handle LCD distance fields #Patch Set 3 : Use correct uv for anti-aliasing; add BGR support. #Patch Set 4 : Add comment #Patch Set 5 : Rebase to master #
Messages
Total messages: 12 (0 generated)
|