You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## [Unreleased]
9
9
10
10
### 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.
11
16
-**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.
12
17
-`"font"`*(default)*: Box edges are derived from the font's ascent/descent metrics - stable and content-independent.
13
18
-`"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