Functions for manual vectorized typesetting.
Project description
⚠️🌋 Disclaimer: this library is alpha-quality; the API is subject to change 🌋⚠️
Coldtype
Hello and welcome to coldtype, an odd little library for programmatic typography, written for use on Goodhertz projects and text animations.
For installation and tutorials, check out coldtype.goodhertz.com
Here’s a quick example:
from coldtype import *
@renderable((1580, 350))
def render(r):
return P(
P(r.inset(10)).outline(10).f(hsl(0.65)),
StSt("COLDTYPE", Font.ColdtypeObviously()
, fontSize=250
, wdth=1
, tu=-250
, r=1
, rotate=15)
.align(r)
.fssw(hsl(0.65), 1, 5, 1)
.translate(0, 5))
Saving that code in a file named test.py and running coldtype test.py (or uv run ct test.py if you’re using uv) results in this image popping up on your screen in a dedicated window:
Documentation
Check out coldtype.goodhertz.com for instructions on installing and getting started with coldtype.
More Examples
The best way to get familiar with Coldtype is to look at and try modifying some example code, like the animating gif below. To try out this example and many more, check out the examples/animation directory in this repo.
Contributing
To get a development environment for Coldtype:
git clone https://github.com/coldtype/coldtype.git
uv sync --extra viewer
uv run ct examples/animations/808.py
To run tests, etc.
uv sync --extra dev
Using with Blender
Big thing: match your the Python version in your uv installation (or venv generally-speaking) to the Python version embedded
- Find the desired Blender version:
uvx b3denv python --version
- Create a project with that version:
uv init --python 3.XX
- Add Coldtype:
uv add "coldtype[viewer]"
- Verify Coldtype installation:
uv run coldtype demoblender
- Try a Blender-enabled Coldtype file:
uv run coldtype demoblender -p b3dlo
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
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
File details
Details for the file coldtype-0.12.3.tar.gz.
File metadata
- Download URL: coldtype-0.12.3.tar.gz
- Upload date:
- Size: 8.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d506060ae52e82c36d7d0d2e45114e0eb7f2484df9d948989d3d0c9b54474a03
|
|
| MD5 |
a442556e7e9c6a36194c47a0e0b118a5
|
|
| BLAKE2b-256 |
df52ef3b4e397d4d095ce2456fea6d93a145c998c2ab6557b99128c2aba0ffc8
|
File details
Details for the file coldtype-0.12.3-py3-none-any.whl.
File metadata
- Download URL: coldtype-0.12.3-py3-none-any.whl
- Upload date:
- Size: 642.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d428ef5f1d9964d5fccd026a01bb8254688f51b1871df28d9dc9ef4ab5e70a7
|
|
| MD5 |
3eacbf139d2abae33e0261c71f65045f
|
|
| BLAKE2b-256 |
4fc872ba0b05b4b92f4660ecfdbeedc18dc3670d42d43f44299e444bbaa41751
|