Reimplemented chars shadow to make it work in other browsers.