underline.js uses the HTML5 canvas utility to optimize the way underlines are drawn on a Web page, removing blurs or ghost pixels from the final rendered result.
Everything is displayed with pixel perfect precision, even on Retina-enabled devices.
Developers can control the underline's stroke height, using a dynamic setting, always a quarter of the text's period glyph's height.
Support is also included for breaks in the underline whenever text descenders are present, a text beautification trick which your users will thank you for.
underline.js will also pay close attention to the distance the underline is displayed compared to the text, using the Golden Ratio to calculate where the line should be rendered.
Basic demos are included with the download package.
Requirements:
- JavaScript enabled on client side
Comments not found