Skip to main content

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


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.4.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bont-1.4.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file bont-1.4.0.tar.gz.

File metadata

  • Download URL: bont-1.4.0.tar.gz
  • Upload date:
  • Size: 3.5 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

Hashes for bont-1.4.0.tar.gz
Algorithm Hash digest
SHA256 83117a6ad25d81a0e2e87d16be63e3b84d1ef061ca28b3327e9b8c9e0b0e6688
MD5 c6c188b8f56dea39f4647902e2fd824a
BLAKE2b-256 fd5046566aa1eafdd2a286963a83b0fb6b9272f1f6a9e305daad3c58843d59c4

See more details on using hashes here.

File details

Details for the file bont-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: bont-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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

Hashes for bont-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3f950beb7974555ae5bd7276d77bb4dcaf62ef3663b2888d775b61a26be95e7
MD5 2c6303ed4cfa20f713ebf6b88d6a9e36
BLAKE2b-256 5bd4d206b53618c3a7c3d9fc6c308af6805fd6f006e97c14eef900e23bcd9cc6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page