项目作者: Voycawojka

项目描述 :
Online bitmap font creator
高级语言: TypeScript
项目地址: git://github.com/Voycawojka/calligro.git
创建时间: 2020-12-01T16:12:44Z
项目社区:https://github.com/Voycawojka/calligro

开源协议:GNU Affero General Public License v3.0

下载


Calligro

Online bitmap font creator.

Available at calligro.ideasalmanac.com

Desktop version is hosted on itch.io

Build & Deploy
CodeFactor

Calligro generates bitmap fonts in the AngelCode’s BMFont format.
It can be used to convert a TTF but unlike the original BMFont and other tools it can also generate bitmap fonts from custom images.

The workflow is as follows:

  • generate a Calligro template (which is a .png image)
  • draw your characters on the template in any graphics editor (Photoshop, Gimp, Aseprite, anything else)
  • upload the filled template back to Calligro and download a bitmap font

Everything is calculated on the client side. No files are sent or stored on the server (we use gh pages anyway).

There is also an offline version available for Windows and Linux. It has the same core features but is a little bit more convenient to use. It also detects system fonts better.

Samples

The BMFont format has existed for a while and a lot of game frameworks, libraries and engines support it out of the box.
Some examples and more details on compatibility can be found in the samples/ directory.

Tutorial

A tutorial is available at calligro.ideasalmanac.com.

Use case

Calligro is useful when you need to draw a custom font stored as a spritesheet. Pixelart font would be a good use.

If you only want to convert an existing truetype font into a bitmap font, you can also try one of those tools instead:

Contributing

If you’d like to contribute: thanks!

This is a regular React/TypeScript project:

  1. # install dependencies and start a dev server with hot reloading
  2. npm install
  3. npm run dev
  4. # then optionally start the desktop app
  5. cd electron_resources
  6. npm install
  7. cd ..
  8. npm run electron:dev
  9. # run unit tests
  10. npm run test

Our actions use Node 20.

Production builds

Web

Create the production web build in the dist/ directory:

  1. npm run build

Desktop

Create the production destop build for Windows and Linux in the electron_build/ directory:

  1. npm run electron:build

Note this command only works on Windows.