Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

kappan

TrueType text as 0-255 coverage for small bitmap screens (SNES translations and the like). HarfRust shapes the line, kerning included, Skrifa draws each glyph at the size, hinted or not, and zeno fills it into a NumPy canvas. No FreeType, no Pillow.

import numpy as np
from kappan import Font

font = Font("NotoSans-Medium.ttf", 11, hinting="full")
canvas = np.zeros((16, 208), dtype=np.uint8)
font.draw(canvas, 4, 13, "Capitaine, un peu de café ?")
font.length("Capitaine, un peu de café ?")  # px
  • hinting: "none" (the outline as designed), "light" (vertical only: crisp x-height and baseline, widths kept), "full" (both axes: each glyph on a whole pixel, advancing by its hinted width plus the kerning).
  • index picks the face in a collection (.ttc), variations sets axes by tag ({"opsz": 17, "wdth": 95}).
  • draw keeps the brighter of the canvas and the glyph coverage where they overlap.

tests/fonts/NotoSans-Regular.ttf is under the SIL Open Font License (tests/fonts/OFL.txt).

Metadata

Release files for kappan 0.2.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kappan 0.2.0a0
File Size Uploaded Provenance Actions
kappan-0.2.0a0.tar.gz 344.1 kB Without provenance Details for kappan-0.2.0a0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kappan 0.2.0a0
File Interpreter ABI Platform Actions
kappan-0.2.0a0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for kappan-0.2.0a0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
kappan-0.2.0a0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for kappan-0.2.0a0-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 2.7 MB

Release files / kappan-0.2.0a0.tar.gz

Download URL kappan-0.2.0a0.tar.gz
Size 344.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4b47c9344015e5f37e8fdfc3499fe9f85c261377cbbb5538310c6fb8d88ed6d2
BLAKE2b-256 checksum
How to use checksums
c7906cc98e323594fc8a3263c090bef6557bd083d2e0947ddd29ad20d7e9c96b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kappan-0.2.0a0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL kappan-0.2.0a0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
41ad071a5cbad1300b2c7afb95b5fedbd51cdcf478ecc065519b321be2248196
BLAKE2b-256 checksum
How to use checksums
aa96a21080cd00e7d72227db47aa0e5087a00f2224968d055a7d39a6e4c4103e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / kappan-0.2.0a0-cp312-abi3-macosx_11_0_arm64.whl

Download URL kappan-0.2.0a0-cp312-abi3-macosx_11_0_arm64.whl
Size 1.1 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3918fc2ad35cac55005d29657bfe229f1a1c85864128a11264f7a028137d2118
BLAKE2b-256 checksum
How to use checksums
5de86abc76aac3de256b4f364149c0d6dd730576d8062c7bc59a511c317e633a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for kappan 0.2.0a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page