Skip to content

cemderv/BMFGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BMFGen

BMFGen is an open source, easy-to-use bitmap font generator for Windows, macOS and Linux.

Simply choose a font, tweak it, and export it to a format of your choice.

https://bmfgen.com

BMFGen Preview

Features

  • Fill glyphs with a solid color, linear gradient, radial gradient or an image.
  • Add an outline to glyphs, with an optional fill.
  • See your generated font as you design it and test it with an example text.
  • Load fonts directly from your system, including TTF and OTF.
  • BMFGen comes with predefined Unicode character sets for you to include in your fonts.
  • Design your fonts and export them in multiple sizes at once, e.g. for low-DPI and high-DPI displays.
  • All glyphs are packed efficiently in such a way that displaying them is as easy as possible, while respecting a maximum texture size you specify.
  • Export the font along with its atlases to known formats such as JSON, XML and text.

License

BMFGen is licensed under the GNU General Public License v3.0 (GPLv3).

Building

BMFGen is written in C++ and uses the Qt framework. A C++ toolchain, CMake >= 3.20 and Qt >= 6.4 is required to build BMFGen.

On Windows

Install the Qt binaries, then inside BMFGen's directory:

# Set up the project
cmake -B build -DCMAKE_PREFIX_PATH="C:/Qt/6.7.2/msvc2019_64"

# Build
cmake --build build --config Release --parallel

Replace 6.7.2 with the version you installed if it is different.

On macOS and Linux

Install Qt using Homebrew (recommended):

brew install qt

On Linux, you can also use your system's package manager, such as apt or dnf. Please ensure that it provides at least Qt 6.4.

Then:

# Set up the project
cmake -B build

# Build
cmake --build build --config Release --parallel

FAQ

Why?

BMFGen started as a tool I wrote for my own use. Once I realized that it's a useful tool, I decided to release it.

Why use bitmap fonts?

Bitmap fonts can be efficiently stored, loaded and rendered. They are suitable for resource-constrained environments or when special effects such as gradients are desired that would otherwise be difficult or impossible to implement at run-time.

Does BMFGen do text rendering?

No, BMFGen is a tool to design and export pre-baked bitmap fonts. Fonts are exported as pairs of description files and images (font atlases).

It is the importing application's job to parse these description files and to render the glyphs using the font atlases.

BMFGen does not do any text shaping or layouting. For such tasks, BMFGen fonts can be combined with libraries such as HarfBuzz, which performs text shaping.

About

Bitmap Font Generator for Windows, macOS and Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published