Skip to main content

django-cufon

Easy Cufon with Django. Django-cufon provides easy-to-use template tags for use with rendering Cufon text in your HTML with Django.

It provides:

  • A tag named {% cufon-script %} that includes the Cufon JavaScripts. This is meant to be put in HEAD.

  • A tag named {% cufon %} that handles rendering your Cufon texts.

read the docs for more information.

Example

In your HEAD be sure to include the Cufon scripts and your fonts:

{% load cufon %}
<html>
<head>
    <title>My awesome page</title>
    {% cufon-script %}
    <script language="text/javascript" src="{{ STATIC_URL }}fonts/my_cufon_font.js"></script>
    [...]

Then, in your body where you want to Cufon some text:

<h1>{% cufon "All your base are belong to us!" "MyAwesomeFont" %}</h1>

The above example will render the text All your base are belong to us! in the Cufon font called MyAwesomeFont

Documentation

For a little more documentation, though not much more, see the docs folder or read the documentation online

Authors & Special Thanks

django-cufon was written by Jonathan Enzinna

Many special thanks to Simo Kinnunen for creating Cufon in the first place.

Metadata

Release files for django-cufon 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 django-cufon 0.1.0
File Size Uploaded Provenance Actions
django-cufon-0.1.0.tar.gz 2.3 kB Without provenance Details for django-cufon-0.1.0.tar.gz

Release files / django-cufon-0.1.0.tar.gz

Download URL django-cufon-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f5d86812ce1679ea6e01a7e98d05479376fda98ef70250d05b78d685ebeba97f
BLAKE2b-256 checksum
How to use checksums
3370a443bb3ef4704e9b898f8ed7b14d253bb55ca7fa1fa4111c8297aee53aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-cufon 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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