Skip to content

italogermando/spritetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpriteType - SpriteFont Generator

A web tool for generating spritesheets of fonts for use in games and applications.

🎯 About

SpriteFont Generator is a tool that lets you create font spritesheets quickly and easily. Load a TTF or OTF font and generate a PNG image containing all the characters you need, with customizable size, spacing and color settings.

✨ Features

  • Upload TTF and OTF fonts
  • Character customization
  • Font size adjustment
  • Individual padding control (top, right, bottom, left)
  • Option to maintain padding ratio
  • Customizable text colors
  • Transparent background support
  • Visual aid grid with adjustable color and opacity
  • Zoom controls
  • Real-time preview
  • PNG export

🚀 How to use

  1. Access the tool
  2. Upload a TTF or OTF font
  3. Adjust the desired settings:
    • Font size
    • Padding
    • Width and Height preview
    • Colors
    • Grid (optional)
  4. View the result in real time
  5. Download the generated spritesheet

💻 Technologies used

  • HTML5
  • CSS3
  • JavaScript (Vanilla)
  • Canvas API (for rendering)
  • JSZip (for ZIP export)
  • Local Font Access API (for accessing system fonts)

🛠️ Local Development

  1. Clone the repository:
git clone https://github.com/italogermando/spritetype.git
  1. Navigate to the project folder:
cd spritetype
  1. Open the index.html file in your browser or use a local server

📁 Project Structure

/
├── index.html
├── css/
│   └── style.css
├── js/
│   └── script.js
└── README.md

🤝 Contribution

Contributions are welcome! To contribute:

Fork the project Create a branch for your feature Commit your changes Push to the branch Open a Pull Request

🚧 Next Steps

  • Godot support [In Testing]
  • Construct2/3 support [In Testing]
  • Real-time character preview
  • Support for more engines/frameworks
  • Advanced kerning options
  • Light/dark themes
  • Recent font history
  • Multiple font support
  • Advanced layout options
  • Emoji support
  • Multilingual interface

🙋‍♂️ Author

Italo Germando

For questions, suggestions or problems, open an issue on GitHub.


Made with ♥ and JavaScript

About

SpriteType - SpriteFont Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published