diff --git a/AGENTS.md b/AGENTS.md index f984c81b..bbf2f7ea 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -35,6 +35,8 @@ Every asset must be one of: - **Public domain.** - **Contributor-original:** created, photographed or generated by a contributor who owns it and licenses it under the project licence (`MIT OR Apache-2.0`). +**One narrow exception: Storyteller's own brand.** The ArtCraft name and logos in `docs/brand/` are owned by Storyteller and are **not** open source (`LicenseRef-Storyteller-Trademark`, terms in `docs/brand/LICENSE-brand.txt`). They may be used only as `kind = "logo"` entries from that directory, to identify the project. Never add other files under this licence, and never modify the logos. + Anything else is forbidden, including assets whose licence you cannot prove from the source. Examples: - system fonts (Apple, Microsoft, Google Android system UI fonts that are not openly licensed); - emoji artwork from Apple, Microsoft or Samsung; diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index e53b6ed1..ff2038e5 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -4,7 +4,7 @@ Every asset PrintCraft includes, bundles or uses to build its published material, with its author, source and licence. The policy is in [AGENTS.md](AGENTS.md) §1. The machine-readable list, with SHA-256 hashes, is [ATTRIBUTION.toml](ATTRIBUTION.toml). Licence texts are kept beside the assets and summarised in [NOTICE](NOTICE). -## In this repository (193) +## In this repository (201) | Asset | Title | Author | Licence | Source | Used for | |---|---|---|---|---|---| @@ -201,6 +201,14 @@ Every asset PrintCraft includes, bundles or uses to build its published material | `docs/images/printcraft-tools.png` | PrintCraft screenshot: All tools | PrintCraft contributors (generated by `cargo xtask screenshots`) | MIT OR Apache-2.0 | this repository | README: tool catalogue. Shows only PrintCraft UI, Lucide icons and the showcase PDF built from the [[fetched]] OFL fonts | | `docs/images/printcraft-twoup.png` | PrintCraft screenshot: Two-up reading | PrintCraft contributors (generated by `cargo xtask screenshots`) | MIT OR Apache-2.0 | this repository | README: layouts. Shows only PrintCraft UI, Lucide icons and the showcase PDF built from the [[fetched]] OFL fonts | | `docs/images/printcraft-viewer.png` | PrintCraft screenshot: Viewer with comments | PrintCraft contributors (generated by `cargo xtask screenshots`) | MIT OR Apache-2.0 | this repository | README hero. Shows only PrintCraft UI, Lucide icons and the showcase PDF built from the [[fetched]] OFL fonts | +| `docs/brand/artcraft-logo-white.png` | ArtCraft brand: artcraft-logo-white | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | +| `docs/brand/artcraft-logo-white.svg` | ArtCraft brand: artcraft-logo-white | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | +| `docs/brand/artcraft-logo.png` | ArtCraft brand: artcraft-logo | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | +| `docs/brand/artcraft-logo.svg` | ArtCraft brand: artcraft-logo | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | +| `docs/brand/artcraft-mark-black.png` | ArtCraft brand: artcraft-mark-black | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | +| `docs/brand/artcraft-mark-black.svg` | ArtCraft brand: artcraft-mark-black | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | +| `docs/brand/artcraft-mark.png` | ArtCraft brand: artcraft-mark | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | +| `docs/brand/artcraft-mark.svg` | ArtCraft brand: artcraft-mark | Storyteller | LicenseRef-Storyteller-Trademark | Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft) | ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it. | ## Compiled in through dependencies (6) diff --git a/ATTRIBUTION.toml b/ATTRIBUTION.toml index affc9784..5538d68f 100644 --- a/ATTRIBUTION.toml +++ b/ATTRIBUTION.toml @@ -2464,3 +2464,91 @@ licence_file = "LICENSE-MIT" kind = "image" usage = "README hero. Shows only PrintCraft UI, Lucide icons and the showcase PDF built from the [[fetched]] OFL fonts" sha256 = "13c0032d140a0b8db98352055864cff65aade8b212efc9ed1166d69512ab755a" + +[[asset]] +path = "docs/brand/artcraft-logo-white.png" +title = "ArtCraft brand: artcraft-logo-white" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "8b86aeb06a12a90ba77a60e0d90329272310e244ee5c1f9b161b391280ca79d8" + +[[asset]] +path = "docs/brand/artcraft-logo-white.svg" +title = "ArtCraft brand: artcraft-logo-white" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "a3e03dc49f9ad4225b8517d5424309c8d1c864d3996d862190d9cc797d5af427" + +[[asset]] +path = "docs/brand/artcraft-logo.png" +title = "ArtCraft brand: artcraft-logo" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "08fc6d9d3717e8f13417bac6f9025b50e11d1e0b32e9e000883d2fe0c4a0c67b" + +[[asset]] +path = "docs/brand/artcraft-logo.svg" +title = "ArtCraft brand: artcraft-logo" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "3188971e1affdf4f6be4fa65f715376a7a305e6aa741ec78b0296c8f934eff08" + +[[asset]] +path = "docs/brand/artcraft-mark-black.png" +title = "ArtCraft brand: artcraft-mark-black" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "5954cc0306e1b9d7beb47097e2e842157113a39d9aba078b57304902687936a9" + +[[asset]] +path = "docs/brand/artcraft-mark-black.svg" +title = "ArtCraft brand: artcraft-mark-black" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "570adcb4f7ba8ca0647f97074476bab81d3272988f1cdee52efa21bf026036a4" + +[[asset]] +path = "docs/brand/artcraft-mark.png" +title = "ArtCraft brand: artcraft-mark" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "9d372157a949c147318561e629b11561c28b7cbc14c84b516a3fe6e84d8fbbad" + +[[asset]] +path = "docs/brand/artcraft-mark.svg" +title = "ArtCraft brand: artcraft-mark" +author = "Storyteller" +source = "Storyteller brand assets (provided by the project owner, 2026-10-01; identical copies in storytold/photocraft)" +licence = "LicenseRef-Storyteller-Trademark" +licence_file = "docs/brand/LICENSE-brand.txt" +kind = "logo" +usage = "ArtCraft branding next to the community links (About dialog, Help menu, home screen) and in docs. Not open source; forks must remove it." +sha256 = "f87af81b6fa411da8820eed2bfdcc54c0ee9cd453b4e868c64f56c69db142d0e" diff --git a/README.md b/README.md index a51f12b7..d2d4b7bc 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,65 @@ -
+

+ + + + ArtCraft + + +

-# PrintCraft +

PrintCraft

-**The open-source PDF workbench.**
-Read, organize, combine, split and secure PDFs in a fast, native app, written in Rust from the ground up.
-macOS · Windows · Linux · the web +

+ The open-source PDF workbench.
+ Read, organize, combine, split and secure PDFs in a fast, native app, written in Rust from the ground up.
+ macOS · Windows · Linux · the web +

-From the artcraft team · part of the Crafting Apps family +

+ License: MIT OR Apache-2.0 + Written in Rust + Platforms: macOS, Windows, Linux, web + No account, no telemetry +

+ +

+ Join the ArtCraft community on Discord +

+ +

+ PrintCraft on getartcraft.com · + ArtCraft · + All Crafting Apps +


-PrintCraft showing a typography showcase PDF, with the All tools panel on the left and threaded comments on the right +

+ PrintCraft with the PrintCraft Showcase cover page open, the All tools panel on the left and 20 threaded comments on the right +
+ The PrintCraft Showcase, a 13-page specimen PDF, open with the All tools panel and threaded comments. +

-
+> [!NOTE] +> **ArtCraft is a community of artists from all walks of life.** Painters, photographers, +> filmmakers, illustrators, designers, animators, hobbyists, and people who picked up a pencil +> last week. If you make things, you're one of us. **[Come say hi on Discord](https://discord.gg/artcraft).** -[Highlights](#highlights) · -[Read](#read-anything-beautifully) · -[Organize](#organize-pages-like-cards-on-a-table) · -[Combine & split](#combine-and-split-without-losing-a-thing) · -[Protect](#open-protected-documents-and-respect-their-rules) · -[Everywhere](#runs-everywhere-stays-yours) · -[Get started](#get-started) · -[Roadmap](ROADMAP.md) - -
+

+ Highlights · + Read · + Find · + Organize · + Combine & split · + Protect · + Forms & layers · + Everywhere · + Agents · + How it's built · + Get started · + What's next · + Crafting Apps +

--- @@ -58,7 +94,11 @@ No account, no telemetry, no cloud. It works offline and opens instantly. The en PrintCraft renders PDFs with care for the details that make a page feel right: kerning and ligatures, right-to-left and complex scripts, vertical CJK, colour emoji, shadings, blend modes, soft masks and optional content. -A page of world scripts — Arabic, Hebrew, Devanagari, Thai, Greek, Cyrillic, Chinese, Korean, IPA, Armenian, Georgian, Tamil and vertical Japanese — rendered crisply +

+ The Scripts of the World page: Arabic, Hebrew, Devanagari, Thai, Greek, Cyrillic, Chinese, Korean, IPA, Armenian, Georgian and Tamil samples, with vertical Japanese in the right margin +
+ Twelve writing systems on one page, plus vertical Japanese, at 125%. +

- **Deep zoom stays sharp.** Large pages render in tiles, so text stays crisp at any magnification. - **Built to survive bad files.** Every page renders in isolation and damaged documents are repaired. Across the 983-file pdf.js test corpus the result is 0 crashes. @@ -67,12 +107,12 @@ PrintCraft renders PDFs with care for the details that make a page feel right: k - - + + - - + +
Two-up reading in Read mode with the dark themeThe dark theme with the comments panelTwo facing pages in Read mode with the dark theme: the Foreword and the Setting Text chapter with its drop cap and pull quoteThe dark theme showing the Code and Images chapter, a syntax-coloured listing and a fractal image, with the comments panel open
Two-up Read modeDark themeTwo-up Read mode, ready for long readingThe dark theme, with the comments panel open
@@ -80,13 +120,20 @@ PrintCraft renders PDFs with care for the details that make a page feel right: k Search the whole document as you type, step through matches with ⌘G, and select text that comes out in the right reading order. That holds for columns, right-to-left runs and CJK too. -Find bar showing match 10 of 16 for the word 'type', highlighted on the page - ## Navigate long documents Bookmarks, page thumbnails and the document's own page labels (i, ii, 1, 2…) keep you oriented in long documents. -The bookmarks panel showing a nested outline next to a page of world scripts + + + + + + + + + +
The find bar showing match 10 of 16 for the word 'type', highlighted in the Expressive Type chapter headingThe Bookmarks panel showing the nested outline of the showcase, with page labels such as Cover, i and ii, next to the Scripts of the World page
Find as you type: match 10 of 16Nested bookmarks with the document's own page labels
--- @@ -97,7 +144,11 @@ Open **Organize pages** to see every page at once: - **Change them:** rotate, delete, insert blank pages, insert pages from another file, and move them earlier or later. - **Undo anything:** ⌘Z, then save. -The Organize pages grid with three pages selected and the page toolbar above +

+ The Organize pages grid with the showcase's pages as thumbnails, three of them selected, and the page toolbar above +
+ Organize pages with three pages selected and the page tools in the toolbar above. +

@@ -113,7 +164,7 @@ Open **Organize pages** to see every page at once: Unsaved documents carry a dot on their tab, and closing or quitting asks before anything is lost. Changes are autosaved every minute. If PrintCraft ever quits unexpectedly, it offers to recover your work the next time it opens. Encrypted documents stay encrypted on disk. - +
The Split document dialog over the organize viewThe Split document dialog over the organize view, set to one page per file and reporting that it creates 13 files from 13 pages
Split document: one page per file makes 13 files.
@@ -150,7 +201,7 @@ Documents restricted by their author show a clear notice, and PrintCraft honours - +
Document Properties with editable title, author, subject and keywordsThe Document Properties dialog on its Description tab, with editable title, author, subject and keywords, and tabs for Security, Fonts and Advanced
Document Properties, Description tab
**Document Properties** shows: @@ -167,8 +218,8 @@ Documents restricted by their author show a clear notice, and PrintCraft honours - - + + @@ -182,8 +233,12 @@ Press ⌘K to search every tool and command, or browse the **All tool
An interactive form with highlighted fields and the Fields panel listing every field and valueA review page with markup and a DRAFT watermark layer, and the Layers panelThe Interactive Form page with highlighted text fields, checkboxes, radio buttons, a list and a signature field, and the Fields panel listing all 13 fields and their valuesThe Review and Markup page with highlights, shapes, ink and an APPROVED stamp under a DRAFT watermark, and the Layers panel with Draft watermark and Print-only notes
Forms: every field with its current value, field highlighting, and checkboxes, radio buttons, lists and signatures drawn the way their author designed them.
- - + + + + + +
The command palette searching for page toolsThe home screen with recommended tools and the full tool catalogueThe command palette searching for 'page', listing Page grid, Page labels, Rotate pages, Insert pages, Delete pages, Extract pages and more, each with the tool it belongs toThe Welcome to PrintCraft home screen with recommended tools, a recent file, a privacy note, and the full tool catalogue in the side panel
The ⌘K command paletteThe home screen and the All tools catalogue
@@ -226,14 +281,18 @@ Every engine feature is reachable without the GUI, through one table of JSON-Sch - **The Rust API** (`printcraft_automation::Automation::call`), for embedding. -Edits stay in memory, undoable, until `doc_save`. Saving to the same file appends an incremental update, so the original bytes are preserved, and the write is atomic. Unsaved changes are never discarded silently. **Driving the app itself.** Start the desktop app with `printcraft --control /tmp/pc.json` and an agent can see and operate the real interface: the widget tree with labels and positions (from the accessibility tree), clicks, typing, keys, commands, view options and screenshots. This is also off by default. It listens only on loopback, and every connection must present the random token written to that file, which only you can read. +Edits stay in memory, undoable, until `doc_save`. Saving to the same file appends an incremental update, so the original bytes are preserved, and the write is atomic. Unsaved changes are never discarded silently. - ```sh - printcraft-cli ui --control /tmp/pc.json inspect query=rotate # find widgets - printcraft-cli ui --control /tmp/pc.json click label="Organize pages" - printcraft-cli ui --control /tmp/pc.json key key=K modifiers='["command"]' - printcraft-cli ui --control /tmp/pc.json screenshot --out window.png - ``` +### Driving the app itself + +Start the desktop app with `printcraft --control /tmp/pc.json` and an agent can see and operate the real interface: the widget tree with labels and positions (from the accessibility tree), clicks, typing, keys, commands, view options and screenshots. This is also off by default. It listens only on loopback, and every connection must present the random token written to that file, which only you can read. + +```sh +printcraft-cli ui --control /tmp/pc.json inspect query=rotate # find widgets +printcraft-cli ui --control /tmp/pc.json click label="Organize pages" +printcraft-cli ui --control /tmp/pc.json key key=K modifiers='["command"]' +printcraft-cli ui --control /tmp/pc.json screenshot --out window.png +``` --- @@ -278,7 +337,9 @@ cargo xtask screenshots # regenerate every screenshot ## What's next -PrintCraft is young and moving fast. **Available today:** +PrintCraft is young and moving fast. The aim is a workbench where you can view, organize, annotate, fill, sign and edit PDFs, at parity with Acrobat Pro. + +**Available today:** - viewing, search and navigation; - organizing pages, combining, extracting and splitting; - document information; @@ -306,44 +367,55 @@ The full plan, with progress and estimates, is in **[ROADMAP.md](ROADMAP.md)**. --- -## Crafting Apps +## The Crafting Apps -Open-source, clean-room, pure-Rust creative applications. Each is native on macOS, Windows and Linux, runs on the web, and can be driven by agents. +PrintCraft is one of the **Crafting Apps**: free, open-source creative tools from the +[ArtCraft](https://getartcraft.com/) team, each written from scratch in Rust and each able to +stand on its own. - - - - - - - - - - - - - - - -
- PhotoCraft
- Image editing -
- DrawCraft
- Vector illustration -
- FilmCraft
- Video editing -
- LightCraft
- Photo library & raw -
- PrintCraft
- PDF documents -
Layered raster editor with byte-exact PSD/PSB round trips and 13 formats at 8/16/32-bit. A Photoshop-class workflow.Vector illustration with the Illustrator-style tools, panels, menus and shortcuts people already know.Non-linear video editor with frame-exact timing and its own codecs. Aims at Premiere Pro parity.Photo library and non-destructive raw developer: its own raw decoders, a wide-gamut float pipeline and a local-first catalog.View, organize, annotate, fill, sign and edit PDFs. Aims at Acrobat Pro parity. You are here.
+| App | What it's for | Code | Learn more | +|---|---|---|---| +| PhotoCraft | Image editing: layers, masks, type and real PSD files | [GitHub](https://github.com/storytold/photocraft) | [getartcraft.com](https://getartcraft.com/apps/photocraft) | +| VectorCraft | Vector illustration (formerly DrawCraft) | [GitHub](https://github.com/storytold/vectorcraft) | [getartcraft.com](https://getartcraft.com/apps/drawcraft) | +| FilmCraft | Video editing, color and sound | [GitHub](https://github.com/storytold/filmcraft) | [getartcraft.com](https://getartcraft.com/apps/filmcraft) | +| LightCraft | Photo library and raw development | [GitHub](https://github.com/storytold/lightcraft) | [getartcraft.com](https://getartcraft.com/apps/lightcraft) | +| PrintCraft | **Reading, organizing and protecting PDFs** · **you are here** | [GitHub](https://github.com/storytold/printcraft) | [getartcraft.com](https://getartcraft.com/apps/printcraft) | +| EffectCraft | Motion graphics and visual effects | [GitHub](https://github.com/storytold/effectcraft) | [getartcraft.com](https://getartcraft.com/apps/effectcraft) | +| DesignCraft | Page layout and publishing | [GitHub](https://github.com/storytold/designcraft) | [getartcraft.com](https://getartcraft.com/apps/designcraft) | + +And [**ArtCraft**](https://getartcraft.com/) itself, our AI image and video studio for artists who want real control. + +
+ +

+ Join the ArtCraft community on Discord +

+ +

Come make things with us

+ +

+ Our Discord is where artists of every kind hang out: people who paint, shoot, draw, cut film, + set type, and people still figuring out what they like to make. Share what you're working on, + ask for help, tell us what's broken, or tell us what you wish these tools could do. + Whatever your medium and however long you've been at it, you're welcome here. +

+ +

+ discord.gg/artcraft · + getartcraft.com · + The Crafting Apps · + PrintCraft +

+ +--- ## Licence MIT OR Apache-2.0 ([LICENSE-MIT](LICENSE-MIT), [LICENSE-APACHE](LICENSE-APACHE)). Every icon, font and image is openly licensed and listed, with its author and source, in [ATTRIBUTION.md](ATTRIBUTION.md). The policy is in [AGENTS.md](AGENTS.md), and required notices are in [NOTICE](NOTICE). Contributors and agents: read [AGENTS.md](AGENTS.md) and [CLAUDE.md](CLAUDE.md). Adobe, Acrobat, Photoshop, Illustrator, Premiere Pro and Lightroom are trademarks of Adobe Inc. PrintCraft is an independent project, not affiliated with or endorsed by Adobe. + +

+ ArtCraft
+ Made by the ArtCraft team and community. +

diff --git a/docs/brand/LICENSE-brand.txt b/docs/brand/LICENSE-brand.txt new file mode 100644 index 00000000..9f46c05c --- /dev/null +++ b/docs/brand/LICENSE-brand.txt @@ -0,0 +1,11 @@ +ArtCraft brand assets + +The files in this directory (the ArtCraft name, wordmark and mark, in every colour and format) are +owned by Storyteller and are NOT open source. They are not covered by PrintCraft's MIT OR +Apache-2.0 licence. + +Storyteller permits them to be included, unmodified, in official PrintCraft builds and +documentation to identify the project and link to its community. Forks and redistributions must +remove or replace them, and may not use the ArtCraft name or logos to imply endorsement. + +All other rights reserved. diff --git a/docs/brand/artcraft-logo-white.png b/docs/brand/artcraft-logo-white.png new file mode 100644 index 00000000..8cfb31d9 Binary files /dev/null and b/docs/brand/artcraft-logo-white.png differ diff --git a/docs/brand/artcraft-logo-white.svg b/docs/brand/artcraft-logo-white.svg new file mode 100644 index 00000000..4af80f75 --- /dev/null +++ b/docs/brand/artcraft-logo-white.svg @@ -0,0 +1,7 @@ + + ArtCraft + + + + + diff --git a/docs/brand/artcraft-logo.png b/docs/brand/artcraft-logo.png new file mode 100644 index 00000000..a4d1544c Binary files /dev/null and b/docs/brand/artcraft-logo.png differ diff --git a/docs/brand/artcraft-logo.svg b/docs/brand/artcraft-logo.svg new file mode 100644 index 00000000..d63f3eae --- /dev/null +++ b/docs/brand/artcraft-logo.svg @@ -0,0 +1,7 @@ + + ArtCraft + + + + + diff --git a/docs/brand/artcraft-mark-black.png b/docs/brand/artcraft-mark-black.png new file mode 100644 index 00000000..27664bc1 Binary files /dev/null and b/docs/brand/artcraft-mark-black.png differ diff --git a/docs/brand/artcraft-mark-black.svg b/docs/brand/artcraft-mark-black.svg new file mode 100644 index 00000000..63943537 --- /dev/null +++ b/docs/brand/artcraft-mark-black.svg @@ -0,0 +1,4 @@ + + ArtCraft + + diff --git a/docs/brand/artcraft-mark.png b/docs/brand/artcraft-mark.png new file mode 100644 index 00000000..dbb3dc08 Binary files /dev/null and b/docs/brand/artcraft-mark.png differ diff --git a/docs/brand/artcraft-mark.svg b/docs/brand/artcraft-mark.svg new file mode 100644 index 00000000..72e191f8 --- /dev/null +++ b/docs/brand/artcraft-mark.svg @@ -0,0 +1,4 @@ + + ArtCraft + + diff --git a/xtask/src/assets.rs b/xtask/src/assets.rs index dee1dc74..fbe38039 100644 --- a/xtask/src/assets.rs +++ b/xtask/src/assets.rs @@ -36,6 +36,11 @@ pub const ALLOWED_LICENCES: &[&str] = &[ ]; /// The closed list of Adobe-authored, non-visual technical data (AGENTS.md §1.1): (crate, path). +/// Storyteller's own brand marks (the ArtCraft name and logos): shipped in the app and docs, but +/// not licensed for reuse by forks. Allowed only for `kind = "logo"` entries under `docs/brand/` +/// (AGENTS.md §1.2). +pub const BRAND_LICENCE: &str = "LicenseRef-Storyteller-Trademark"; + pub const ADOBE_DATA_ALLOWED: &[(&str, &str)] = &[("hayro-cmap", "assets/cmaps.brotli"), ("hayro-interpret", "src/font/generated/metrics.rs")]; /// File extensions that count as assets wherever they appear in the repository. @@ -208,7 +213,10 @@ pub fn check(root: &Path, m: &Manifest, repo_files: &[String], lock: &BTreeSet<( if !seen.insert(a.path.clone()) { problems.push(format!("{}: listed twice", a.path)); } - licence_ok(&a.path, &a.licence, &mut problems); + let brand = a.licence == BRAND_LICENCE && a.kind == "logo" && a.path.starts_with("docs/brand/"); + if !brand { + licence_ok(&a.path, &a.licence, &mut problems); + } if !root.join(&a.licence_file).is_file() { problems.push(format!("{}: licence file {} is missing", a.path, a.licence_file)); } @@ -419,6 +427,22 @@ mod tests { assert!(p.iter().any(|p| p.contains("SHA-256 does not match")), "{p:?}"); } + #[test] + fn brand_licence_only_for_brand_logos() { + let root = super::root(); + for (path, kind, pass) in [ + ("docs/brand/artcraft-mark.svg", "logo", true), + ("docs/brand/artcraft-mark.svg", "icon", false), + ("assets/icons/mark.svg", "logo", false), + ] { + let mut a = asset(path, "Storyteller", kind, BRAND_LICENCE); + a.licence_file = "docs/brand/LICENSE-brand.txt".into(); + let m = Manifest { asset: vec![a], ..Default::default() }; + let p = check(&root, &m, &[], &BTreeSet::new()); + assert_eq!(p.iter().all(|p| !p.contains("allowlist")), pass, "{path} {kind}: {p:?}"); + } + } + #[test] fn adobe_data_only_on_the_closed_list() { let l = lock(&[("hayro-cmap", "1.0.0"), ("other", "1.0.0")]);