⚠️ Breaking changes
- Change the API to accept an options object instead of arguments:
const tinySdf = new TinySDF({
fontSize: 24,
fontFamily: 'Arial'
});
- Simplify the API down to just a single
draw
method (that calculates glyph metrics by default).
- Change the shape of the return value for readability and consistency (see the docs).
- Drop support for Internet Explorer.
- Switch the package to ES Modules syntax.
✨ Other improvements
- Improve performance by up to 20%.
- Add
fontStyle
support.
- Fix major performance issues on certain Chrome/GPU combinations.
- Fix an issue where some glyphs where clipped by 1 pixel at the bottom. #33