Skip to main content

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.1.0

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.1.0
File Size Uploaded Provenance Actions
kappan-0.1.0.tar.gz 344.0 kB Without provenance Details for kappan-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kappan 0.1.0
File Actions
kappan-0.1.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details for kappan-0.1.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
kappan-0.1.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details for kappan-0.1.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
kappan-0.1.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for kappan-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
kappan-0.1.0-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for kappan-0.1.0-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 5.1 MB

Release files / kappan-0.1.0.tar.gz

Download URL kappan-0.1.0.tar.gz
Size 344.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a4546cf26ed1dcb83beaa8a9b0f7ed89ae2cec48097d3e8608c80a8477e5f362
BLAKE2b-256 checksum
How to use checksums
2bc88b41409a17cda9545bf6fba44f745193eb60abe93329f4858c032c8c6d49
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.1.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL kappan-0.1.0-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
93388b725664bc7779b084b4b81bf7094780e543630c88ffa1542652f9c826d0
BLAKE2b-256 checksum
How to use checksums
2d416667f3b20693fddb5ade74b89c50a13c2ae8ccd7a962cb125fc3dff8996f
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.1.0-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL kappan-0.1.0-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
fdadf09f8e80cb480f747f4ef7f8755c0df085e0a9aba3865b3206f0c773ecaa
BLAKE2b-256 checksum
How to use checksums
1a5357edff43b0782ce085835f30ff84e1245821dbace0055c8b54e2a8442d50
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.1.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL kappan-0.1.0-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
f56acd0aff76264abac52e6c7007037f37bb738576cd0e89679fbee1f95c0aa4
BLAKE2b-256 checksum
How to use checksums
0aa969eaf95b9a86b6f55400a1e74fa3ee73eb34b97046a9959693382424768a
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.1.0-cp312-abi3-macosx_10_12_x86_64.whl

Download URL kappan-0.1.0-cp312-abi3-macosx_10_12_x86_64.whl
Size 1.2 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
34afb549f5a99d8000912ad9e2b6c372c6ee4cf67defdcb11e046c56732dcd7b
BLAKE2b-256 checksum
How to use checksums
432c8b6d18f2fe1032ceebe3be2958e90ec918a2b366309107be1bd11ab45c92
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.1.0

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