Skip to content

Releases: mapbox/tiny-sdf

v2.0.5

01 Feb 11:20
Compare
Choose a tag to compare
  • 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
Choose a tag to compare

Include TypeScript typings for real this time.

v2.0.3

18 Oct 14:20
Compare
Choose a tag to compare

Add TypeScript typings (thanks @HarelM!). #39

v2.0.2

24 Sep 12:54
Compare
Choose a tag to compare
  • 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
Choose a tag to compare
  • Fix TinySDF not instantiating in Web Worker context.
  • Avoid publishing irrelevant files to NPM.

v2.0.0

22 Sep 07:45
Compare
Choose a tag to compare

⚠️ 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
Choose a tag to compare

Fix regression that broke tinySdf.draw (non-metrics pathway).

v1.2.4

18 Feb 19:59
Compare
Choose a tag to compare

Use alphabetic baseline where possible for more consistent glyph alignment. #30

v1.2.3

18 Feb 19:58
Compare
Choose a tag to compare

Fix significant performance regression on Firefox. #29

v1.2.2

18 Feb 19:58
Compare
Choose a tag to compare

Fix alignment issues with RTL characters. #27