Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 2.18 KB

README.md

File metadata and controls

42 lines (27 loc) · 2.18 KB

Regenerate screenshots

generate_screenshots.py regenerates epigraph.png and ginger.png using the current GUI. This single script requires Python 3.9 or later, uses only the standard library, and needs a working graphical desktop.

From the repository root, build the GUI-enabled CLI:

cargo build --locked --release -p tdector-cli --features gui-control --target-dir target/gui-control

On macOS or Linux:

python3 sample/generate_screenshots.py --tdector ./target/gui-control/release/tdector

On Windows:

py -3 sample/generate_screenshots.py --tdector ./target/gui-control/release/tdector.exe

Use python instead of py -3 if that is how Python is installed. If the GUI-enabled tdector is on PATH, omit --tdector. The generator locates sample files relative to its own location; a supplied executable path is relative to your current directory.

The generator arranges each sample, captures its rendered framebuffer, and closes its GUI session. It overwrites the two PNG files only after both captures succeed; a failed capture leaves the existing images in place. The sample project files remain unchanged. The compositions use logical client sizes of 1280 × 960 for Epigraph and 1400 × 1000 for Ginger, so output pixel dimensions and font rendering vary with display DPI and platform. See the GUI-control guide for display constraints and composition details.

Acknowledgments

ginger.txt and it's translation come from:

epigraph.txt and it's translation come from:

epigraph.otf is made by myself using FontForge, you can access the source file in NewNariSans.sfd.