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.2.0.tar.gz
(3.4 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.2.0-py3-none-any.whl
(5.0 kB
view details)
File details
Details for the file bont-1.2.0.tar.gz.
File metadata
- Download URL: bont-1.2.0.tar.gz
- Upload date:
- Size: 3.4 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 |
577d75eac51efb0bc95218ca6976557a68b0eea13fcf423d0a139cebfc5ea231
|
|
| MD5 |
051cfc175181eeb81865ed7bef1200af
|
|
| BLAKE2b-256 |
6ac0e89da59ed573b9e58fac47d50de6e6a961dd3d3962f4280c37e7eec6f9ad
|
File details
Details for the file bont-1.2.0-py3-none-any.whl.
File metadata
- Download URL: bont-1.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 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 |
2d728c3b14a24f6da3422f28d462516b97ee6a77be080d1bbb48735c878b0005
|
|
| MD5 |
f2008f610db81f59de7875f35b3f3106
|
|
| BLAKE2b-256 |
332dae355b892196b5891fdff90df350c6a8865c252e58ce2adb2a8f933ee5d0
|