Skip to content

feat(editor): add selected-text font sizing - #57

Merged
alientechsw merged 4 commits into
AlienTechSoftware:mainfrom
Mathew-D:feature/font-size
Nov 9, 2026
Merged

alientechsw merged 4 commits into
AlienTechSoftware:mainfrom
Mathew-D:feature/font-size

Conversation

@Mathew-D

@Mathew-D Mathew-D commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

What and why

Adds a font-size selector to the Home ribbon, with sizes from 8 to 72 pt. It applies to selected text, updates the live view, and preserves formatting when HTML and CMGFM pages are saved and reopened. Selecting text is required; the UI explains this when there is no selection.

Quality level L3 (see SKILLS/nc-devx/SKILL.md)

  • The branch is based on main and has no merge commits
  • cargo xtask ci passes
  • Coverage: the coverage job's warnings are read; cargo xtask coverage --update is in this pull request if coverage rose
  • Relevant format documentation was updated; other listed docs do not apply
  • A new user action is a CommandSpec with a test
  • Page changes: cargo xtask demo-check and the format parity test passed through cargo xtask ci; a side-by-side visual check remains
  • UI changes: the pictures were not visually reviewed; cargo xtask screenshots was not run
  • No new files were added under assets/ or docs/images/

How it was checked

  • cargo fmt --all - passed
  • cargo test -p notecraft-formats -p notecraft-ui-egui - passed
  • cargo clippy -p notecraft-formats -p notecraft-ui-egui --all-targets -- -D warnings - passed
  • cargo xtask ci - passed, including demo and format parity checks
  • git diff --check - passed

Coverage review and visual review remain outstanding.

Add a Home ribbon font-size selector and preserve formatting in HTML and CMGFM.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@alientechsw alientechsw left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is very nice!!

How do you like to proceed?

  1. Add the rest of the group
Image
  1. Hook it to undo / redo
  2. more test cases to selected text

Or do incremental stack ?

@Mathew-D

Mathew-D commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks! I’d suggest finishing this PR first: verify undo/redo and add more selected-text tests, including mixed formatting, Unicode, changing sizes, and save/reopen in both formats.

Once that’s merged, let’s add the remaining controls incrementally, with a focused PR for each feature. That should make the changes easier to review and test.

@alientechsw alientechsw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

2 follow up issues

#59
#60

@alientechsw
alientechsw merged commit 464e031 into AlienTechSoftware:main Nov 9, 2026
9 checks passed
@Mathew-D
Mathew-D deleted the feature/font-size branch November 13, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants