GraphiteEditor / GraphiteEditor/Graphite

CLI export doesn't work for text

Ouverte
#4,155 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
27.2k
Forks
1.3k
Merge moyen
20 h 5 min
PR mergées (30 j)
57

Description

Using the CLI export doesn't render text layers.

Steps to reproduce:
1. Make a new document in the latest web version of Graphite with `cargo run`.
2. Using the text tool, add some text to say "Test"
3. Save this file to the computer as `my_document.graphite` in your document folder
4. Export this file through the CLI with `cargo run cli -- export ~/Documents/my_document.graphite -o my_output.png --width 1920 --height 1080`
5. Observe that the resulting image is blank (or, if you had another layer in the artboard, the result is that other layer)

Other notes:
- This seems to be an issue for any of the 4 filetypes (png, jpg, svg, gif)
- I tried some workarounds, like converting the text to sample polyline or filling it with instance points, and these would also not render, so my guess is the Text node itself has some kind of issue.
- Unfortunately, I wasn't able to track down when this started, as the introduction of this bug goes beyond the current CLI syntax.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Reproduce the failure with the documented `cargo run cli -- export` command, then trace the CLI export path and how it handles Text nodes. Confirm the fix by exporting a document containing text to PNG, JPG, SVG, and GIF and verifying that the text renders.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
cli, computer-graphics
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
55/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.