feat(compose): font size control #73

Closed
opened 2026-07-01 21:22:45 +00:00 by JMR-dev · 0 comments
JMR-dev commented 2026-07-01 21:22:45 +00:00 (Migrated from github.com)

Part of the compose rich-formatting epic — stacked on the rich-text foundation ticket (branch feat-richtext-foundation), which provides RichStyle.FontSize(pt).

Scope

  • Preset size dropdown (10 / 12 / 14 / 18 / 24 pt, plus "Default" to clear) in new ui/compose/format/FontSizePicker.kt, applying RichStyle.FontSize(pt) to the selection via the generalized toggle path; in-editor rendering maps pt→sp.
  • String resources in the toolbar block.

Acceptance

  • font-size:Npt appears in emitted HTML and round-trips (parser accepts pt and px); picker shows the selection's current size; editing-op + round-trip tests; androidTest.
Part of the compose rich-formatting epic — stacked on the rich-text foundation ticket (branch `feat-richtext-foundation`), which provides `RichStyle.FontSize(pt)`. **Scope** - Preset size dropdown (10 / 12 / 14 / 18 / 24 pt, plus "Default" to clear) in new `ui/compose/format/FontSizePicker.kt`, applying `RichStyle.FontSize(pt)` to the selection via the generalized toggle path; in-editor rendering maps pt→sp. - String resources in the toolbar block. **Acceptance** - `font-size:Npt` appears in emitted HTML and round-trips (parser accepts `pt` and `px`); picker shows the selection's current size; editing-op + round-trip tests; androidTest.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JMR-dev/LibreMail#73