Skip to content

v2.1.0

Choose a tag to compare

@mourner mourner released this 08 Apr 09:02
· 3 commits to main since this release
  • Apply gamma correction to anti-aliased pixels. This makes the SDF-rendered text very slightly thicker and matches how browsers render the same text/font with HTML closer (by @xavierjs #61)
  • Improve performance by ~10%.
  • Fix glyph x alignment to use actual bounding box metrics, matching height behavior. #34
  • Reintroduce using OffscreenCanvas by default where available, making TinySDF work in worker contexts. #35
  • Better code comments to clarify logic. #10

⚠️ This release very slightly alters how text is rendered, which might require updating test expectations for downstream users.