Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
samizdatco committed Jan 12, 2025
1 parent 4081bf9 commit 6c805b8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Changelog

<!-- ## 🥚 ⟩ [Unreleased] -->
## 🥚 ⟩ [Unreleased]

### New Features
- Added `fontHinting` attribute (off by default, matching the weights of fonts to browser rendering). Setting it to `true` may result in crisper edges but adds some weight to the font.

### Bugfixes
- Text spacing
- Setting `letterSpacing` no longer indents text at beginning of line
- `letterSpacing` now properly handles negative values
- Improved accuracy of measureText()
- Now uses font metrics' default leading when a lineHeight is left unspecified in the `ctx.font` string (NB: this is likely to cause vertical shifts for non-`alphabetic` baselines)
- Updated baseline offset calculations for `middle` & `hanging` to better match browsers
- the `actualBoundingBox*` & `lines[].x/y/width/height` rectangles are now just the glyph-occupied area, not whole lineHeight & width of the textblock
- Fixed the sign on `actualBoundingBoxLeft` (+ values now mean left of origin)
- lines[].baseline now corresponds to the selected ctx.textBaseline, previously it was always the alphabetic baseline

## 📦 ⟩ [v2.0.1] ⟩ Dec 8, 2024

Expand Down

0 comments on commit 6c805b8

Please sign in to comment.