SmartUnderline works by interrupting underlines to let low-reaching characters go through.
This is a better typography practice which indirectly improves the text readability and also beautifies the text.
The library was inspired by the newer iOS8 release which does the exact same thing for underlined links.
SmartUnderline doesn't work only for predetermined characters with descenders like g, y, or p, but dynamically analyzes fonts and detects which actual characters are going below the underline itself.
This means you can use it with custom fonts where some characters are shown in a lower position (like 9, 7, 4, or other numbers and letters).
What is new in this release:
- Use typography metrics to better position the underline (requires canvas support).
What is new in version 3.0.0:
- Use typography metrics to better position the underline (requires canvas support).
What is new in version 2.0.0:
- Support hover link styles.
Requirements:
- JavaScript enabled on client side
Comments not found