Convert TrueType fonts to bitmap font texture atlas
Project description
bont
bont is a Python module for converting TrueType fonts to bitmap font texture atlas.
Usage
from pathlib import Path
from bont import generate_bitmap_font
src = Path("/path/to/font.ttf")
dst = Path("/path/to/dst/folder")
generate_bitmap_font(src, dst, size=16)
Development
Create a virtual environment:
uv venv
Install requirements:
uv sync
A note from Andrew
This is a module that I created and maintain for my own personal projects. Please keep the following in mind:
- Features are added as I need them.
- Issues are fixed as my time and interest allow.
- Version updates may introduce breaking changes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bont-1.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
bont-1.1.0-py3-none-any.whl
(4.9 kB
view details)
File details
Details for the file bont-1.1.0.tar.gz.
File metadata
- Download URL: bont-1.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8b939c1a34b1bb248313fc6758df6af113ba6443dfbfb0ceac2b4f2b96b9131
|
|
| MD5 |
01ed1ebd2fe05cd8f8586ded7dbba4ef
|
|
| BLAKE2b-256 |
f91b472ea5205ac89520bf9e5c53a6d866bf365a895a5d7161092633a785c044
|
File details
Details for the file bont-1.1.0-py3-none-any.whl.
File metadata
- Download URL: bont-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
230efc77578cf5b715bb4783c4c2b5d883696f0b9aa7f31005af24fd96042af0
|
|
| MD5 |
e3d997a82767edca6d89524c5a2d43a0
|
|
| BLAKE2b-256 |
9e1b701682576f2dabe98e6c7e4f23053308d324d11e56982cfb69d2d3f7ca8a
|