Releases: mapbox/tiny-sdf
Releases · mapbox/tiny-sdf
v2.0.7
05 Aug 11:35
Compare
Sorry, something went wrong.
No results found
Add a lang option (passed through to the Canvas context) to handle subtle variations between Simplified Chinese, Traditional Chinese, and Japanese CJK rendering. #58
v2.0.6
05 Aug 11:33
Compare
Sorry, something went wrong.
No results found
Fix an edge case with negative-width diacritics #50
Fix glyphAdvance TypeScript type
v2.0.5
01 Feb 11:20
Compare
Sorry, something went wrong.
No results found
Fix glyph clipping at the bottom in some cases #43 (by @boris-ulyanov )
Fix a bug with TinySDF throwing an error when drawing characters with diacritic marks. #40
Fix new TinySDF() producing an error if no options provided.
v2.0.4
18 Oct 14:41
Compare
Sorry, something went wrong.
No results found
Include TypeScript typings for real this time.
v2.0.3
18 Oct 14:20
Compare
Sorry, something went wrong.
No results found
v2.0.2
24 Sep 12:54
Compare
Sorry, something went wrong.
No results found
Temporarily remove OffscreenCanvas usage due to the current Chrome version (v93) having performance issues with it (not respecting willReadFrequently context option).
v2.0.1
22 Sep 16:30
Compare
Sorry, something went wrong.
No results found
Fix TinySDF not instantiating in Web Worker context.
Avoid publishing irrelevant files to NPM.
v2.0.0
22 Sep 07:45
Compare
Sorry, something went wrong.
No results found
⚠️ 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
v1.2.5
18 Feb 19:59
Compare
Sorry, something went wrong.
No results found
Fix regression that broke tinySdf.draw (non-metrics pathway).
v1.2.4
18 Feb 19:59
Compare
Sorry, something went wrong.
No results found
Use alphabetic baseline where possible for more consistent glyph alignment. #30