Skip to content

About

Simple letter generator for your RPG campaigns.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Fantasy Letter Forge

A static web app for creating fantasy-style handwritten letters and exporting them as PNG images.

Tech Stack

  • Plain HTML, CSS, and JavaScript
  • Google Fonts for free handwritten/script fonts
  • No build step and no backend

Local Preview

From this folder, run:

python -m http.server 4173 --bind 127.0.0.1

Then open:

http://127.0.0.1:4173/

If your system Python is unavailable, use any static file server or open index.html directly in a browser.

If you are running into CORS issues with Chrome you can run the following command on Windows:

  1. Open Start window
  2. Search Run and open it or press Window+R
  3. Paste chrome.exe --user-data-dir="C://Chrome dev session" --disable-web-security and execute it

That should open a new Chrome window with Web Security disabled. Once you are done, close the window.

Current Features

  • 86 handwritten, runic, gothic, elven-style, infernal-style, and fantasy display font choices
  • Previewable font picker that renders each font name in its own typeface
  • 16 AI-generated parchment texture choices
  • Multiple letter sizes
  • Clean Cut as the default edge style
  • Material-style deckled, torn, and singed edge masks
  • Additional jagged deckle, ragged tear, charred ragged, and clean edge styles
  • Editable letter body
  • Basic WYSIWYG formatting: bold, italic, underline, and alignment
  • Generic seal/stamp presets with blank wax, added fantasy symbols, wax, and ink stamp styles
  • Optional embossed initials in the seal
  • PNG export

Assets

  • assets/parchment-atlas.png contains the generated parchment texture atlas used by the paper selector.
  • assets/edge-*-mask.png contains tuned alpha masks for deckled, torn, and singed paper edges.
  • assets/edge-singed-scorch.png contains the contour-following burn overlay with patchy brown and black char variation.

Edge Asset Scripts

  • tools/generate_deckled_edge.py regenerates only edge-deckled-mask.png.
  • tools/generate_torn_edge.py regenerates only edge-torn-mask.png.
  • tools/generate_singed_edge.py regenerates only edge-singed-mask.png.
  • tools/generate_singed_scorch.py regenerates only edge-singed-scorch.png.
  • tools/generate_edge_assets.py is a convenience wrapper that runs all four scripts.

About

Simple letter generator for your RPG campaigns.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages