Skip to content

Commit db15192

Browse files
committed
docs: update changelog
1 parent 93a14e8 commit db15192

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### Added
11+
- **Letter Spacing** (`letter_spacing()`): Controls the extra space between characters, mirroring the CSS `letter-spacing` property.
12+
- Accepts an absolute pixel offset (`letter_spacing(8)`) or a percentage of the font's space-character width (`letter_spacing("10%")`).
13+
- Negative values tighten character spacing.
14+
- Pass `"normal"` to restore the font's default spacing.
15+
- Inherited, so it can be set once on a `Canvas` or container and applied to all `Text` nodes inside.
1116
- **Text Box Edge** (`text_box_edge()`): Controls how the top and bottom edges of a text node's bounding box are calculated. Inspired by the CSS `text-box-trim` / `text-box-edge` properties.
1217
- `"font"` *(default)*: Box edges are derived from the font's ascent/descent metrics - stable and content-independent.
1318
- `"glyphs"`: Box edges are derived from the actual bounds of the rendered glyphs - tightly wraps visible characters, removing empty ascender/descender space.

0 commit comments

Comments
 (0)