Skip to main content

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:

An example

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

coldtype-0.12.4.tar.gz (8.3 MB view details)

Uploaded Source

Built Distribution

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

coldtype-0.12.4-py3-none-any.whl (643.2 kB view details)

Uploaded Python 3

File details

Details for the file coldtype-0.12.4.tar.gz.

File metadata

  • Download URL: coldtype-0.12.4.tar.gz
  • Upload date:
  • Size: 8.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for coldtype-0.12.4.tar.gz
Algorithm Hash digest
SHA256 d304e88dca19ddb9cd4f1208a52917134331190ae75292018c04010159757c94
MD5 92b2cffaaef4fdae63737ae9fdf449a1
BLAKE2b-256 d94ea358342bb0a186365870fbdc59ddc6839bf5c12f001362cb161aaa63527b

See more details on using hashes here.

File details

Details for the file coldtype-0.12.4-py3-none-any.whl.

File metadata

  • Download URL: coldtype-0.12.4-py3-none-any.whl
  • Upload date:
  • Size: 643.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for coldtype-0.12.4-py3-none-any.whl
Algorithm Hash digest
SHA256 19322d9f35d5f18e9a48599cc6becbfb3dac501cec3000a4446fc9767981ea98
MD5 a30677ca6efe1a5cf775ec2a2ee6a216
BLAKE2b-256 b120e539107f4325a03134dd147093b06c71e7b0b0c56b14913d741425b9f00d

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