Type: Create Font Sheet aligns right-to-left samples left and journals its artboard

Right-to-left samples used the automatic alignment, which anchors them at
their right edge, so a sample started left of its column and could cross
the margin or the column before it. Every line is now aligned left.

The command now takes `artboard`, and when it is left out the journal
records the active artboard as `activeArtboard`, so a replay lays the
sheet out on the same artboard. An action leaves `activeArtboard` out.
This commit is contained in:
dotCooCoo committed 2026-12-01 12:22:29 -08:00
1 parent 2933880c63
commit 8a808afc6f
5 files changed
+79 -8

No files matched your search

+6 -3
View File
@@ -18252,8 +18252,9 @@ the fonts can be compared on the artboard or printed.
after its font. With `labels` on, an entry starts with a line naming its font in the document's normal type font, at
the sample's size up to 9 pt, and the sample follows on the next line. With `allStyles` each style of a family gets
its own entry, labeled with the family and style; otherwise the family's Regular is used, else its closest style.
- **Layout:** the entries flow down the columns of the active artboard, inside `margin`, with `gap` between entries
and between columns. A sample wider than its column runs on past it. When the artboard is full, the sheet continues
- **Layout:** the entries flow down the columns of the active artboard (or the one `artboard` names), inside `margin`, with `gap` between entries
and between columns. Every line is aligned left, right-to-left samples too, so each starts at its column's left
edge. A sample wider than its column runs on past it. When the artboard is full, the sheet continues
on new artboards of the same size to the right of the rightmost artboard, 20 pt apart; with `newArtboards` off the
later pages are laid out in the same places without artboards. A document without artboards lays the sheet out on a
612 × 792 pt page at the origin and adds no artboards.
@@ -18280,6 +18281,8 @@ the fonts can be compared on the artboard or printed.
| `gap` | pt 0…1000, between entries and between columns (12) |
| `margin` | pt 0…1000, inside each page (36) |
| `newArtboards` | true; false: the pages after the first get no artboards |
| `artboard` | 0-based index of the artboard the first page is laid out on (the active artboard) |
| `activeArtboard` | the journal records the active artboard here when `artboard` is left out, so a replay uses the same artboard; `artboard` goes ahead of it, and an action leaves it out |
In `addon.type.fontSheet`, a parameter given as `null` is the same as one left out and takes its default; any other
value of the wrong type or out of range is an error. While the Create Font Sheet… dialog is open, Delete Artboard, Cut
@@ -18288,7 +18291,7 @@ would delete the artboard the dialog opened on, and so does a running script's `
that does not catch the error ends with it); close the dialog first.
→ `{id, count, skipped: [family, or family and style…], artboards: [index…] (the artboards added), warning?}`. Create Font Sheet… opens a dialog
(`ui.menuDialog {command}`) whose fields are the command's parameters except `families`, with Preview, which starts
(`ui.menuDialog {command}`) whose fields are the command's parameters except `families`, `artboard` and `activeArtboard` (it lays the sheet out on the artboard that was active when it opened), with Preview, which starts
off: switched on, it sets the whole sheet again after each change. OK is off while the sample text is empty. Plug-ins can't call the command, since the sheet lists the installed fonts as
`text.fontList` does.
+1 -1
View File
@@ -3186,7 +3186,7 @@ A VectorCraft addition, not a feature of the reference app (it has no command fo
## Type Tools add-on: Create Font Sheet (2026-11-29)
A VectorCraft addition, so no area score moves. Object › Plug-ins › Type Tools › Create Font Sheet… sets a line of sample text once in each font family the font menus list, or in the families whose name contains a filter, each entry labeled with its font's name unless labels are switched off, as point type flowed down columns on the active artboard. When the artboard is full, Add Artboards When Full (on by default) adds new artboards of the same size to its right for the rest; with it off, the rest is laid out in the same places to the right without artboards. Every Style gives each style of a family its own entry; families whose font can't be loaded, and composite fonts whose part setting the sample can't, are left out and listed. Each row is as tall as the tallest laid-out entry, so a composite font that enlarges the sample does not overlap. The sheet is one selected group made in one undo step, from a dialog whose Preview starts off (`addon.type.fontSheet`); its preview and OK set the sheet on the artboard active in the view when it opens, and while it is open, Delete Artboard, Cut Artboard, Delete Empty Artboards and Artwork Cleanup's Empty Artboards return an error when they would delete that artboard, also when a running script calls them through `vc.run`. Tests: `cmd::addons::typetools::font_sheet::tests` in `vectorcraft-engine` (labels, columns and margins, new artboards and none, the filter, every style, fonts and styles that don't load, composite fonts' row heights and missing parts, undo, a locked layer, bad params refused), `addons::typetools::font_sheet::tests` (including the artboard active when the dialog opens) and the Create Font Sheet row of `add_on_dialogs_preview_cancel_and_run_their_command` in `vectorcraft-ui-egui`. Commands: `docs/mcp.md` › Type Tools add-on › Create Font Sheet.
A VectorCraft addition, so no area score moves. Object › Plug-ins › Type Tools › Create Font Sheet… sets a line of sample text once in each font family the font menus list, or in the families whose name contains a filter, each entry labeled with its font's name unless labels are switched off, as point type flowed down columns on the active artboard (or the one `artboard` names; the journal records the active one, so a replay uses the same artboard). Every line is aligned left, right-to-left samples too, so each starts at its column's left edge. When the artboard is full, Add Artboards When Full (on by default) adds new artboards of the same size to its right for the rest; with it off, the rest is laid out in the same places to the right without artboards. Every Style gives each style of a family its own entry; families whose font can't be loaded, and composite fonts whose part setting the sample can't, are left out and listed. Each row is as tall as the tallest laid-out entry, so a composite font that enlarges the sample does not overlap. The sheet is one selected group made in one undo step, from a dialog whose Preview starts off (`addon.type.fontSheet`); its preview and OK set the sheet on the artboard active in the view when it opens, and while it is open, Delete Artboard, Cut Artboard, Delete Empty Artboards and Artwork Cleanup's Empty Artboards return an error when they would delete that artboard, also when a running script calls them through `vc.run`. Tests: `cmd::addons::typetools::font_sheet::tests` in `vectorcraft-engine` (labels, columns and margins, new artboards and none, the filter, every style, fonts and styles that don't load, composite fonts' row heights and missing parts, undo, a locked layer, bad params refused), `addons::typetools::font_sheet::tests` (including the artboard active when the dialog opens) and the Create Font Sheet row of `add_on_dialogs_preview_cancel_and_run_their_command` in `vectorcraft-ui-egui`. Commands: `docs/mcp.md` › Type Tools add-on › Create Font Sheet.
## Unit Converter add-on (2026-11-14)