Skip to main content

tkextrafont

Build status Build status PyPI version

From the basic concept of the old version of this repository and the build system created for python-gttk now comes a version of the extrafont package that is packaged for Python on both Windows and Linux platforms and run on CI platforms.

Building & Installation

The package is built with CMake and scikit-build, and on Windows an installation of MYS2 is required. The original build system for the extrafont package with a build system that depends on Visual Studio is not available in this repository, though you might be able to build the extrafont binary separately and then copy it as you require.

Linux

This example is given for Ubuntu 20.04, change the names of packages and commands as required for your distribution of choice.

sudo apt install python3-dev tcl-dev tk-dev \
    fontconfig libfontconfig1 libfontconfig1-dev \
    cmake cmake-data extra-cmake-modules build-essential
python -m pip install scikit-build
python setup.py install 

Windows

See the setup.py and .appveyor.yml for more detailed installation instructions. After installing the dependencies (tk, cmake, toolchain, fontconfig), run in the MSYS shell:

python setup..py build
python setup.py install

Usage

import tkinter as tk
from tkextrafont import Font

window = tk.Tk()
font = Font(file="tests/overhaul.ttf", family="Overhaul")
tk.Label(window, text="Hello", font=font).pack()
window.mainloop()

This library is available under the MIT License, as described in LICENSE.md. extrafont is originally available under a different license, which is also found in LICENSE.md. The build system (setup.py, .appveyor.yml and .travis.yml) are available under GNU GPLv3 only.

Metadata

Release files for tkextrafont 0.6.3

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

Built distributions (wheels)

Table of built distributions (wheels) for tkextrafont 0.6.3
File
tkextrafont-0.6.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
tkextrafont-0.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
tkextrafont-0.6.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
tkextrafont-0.6.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
tkextrafont-0.6.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details

Total release size: 5.3 MB

Release files / tkextrafont-0.6.3-py3-none-win_amd64.whl

Download URL tkextrafont-0.6.3-py3-none-win_amd64.whl
Size 47.8 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f139af112a941058aea9c5c57f886d7e0120d4654f79c162be24dea1ea545659
BLAKE2b-256 checksum
How to use checksums
da49adce1a55d987f8348094496e18235980abf7655c1f5d6916af98e54273f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

Release files / tkextrafont-0.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tkextrafont-0.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5f73d9abd0c7f2fdb9a42e9a5c057f5a6125ed2d2b2df30de47832422f3b79c6
BLAKE2b-256 checksum
How to use checksums
712b835651d6727078657c9fa8b67d53dc4b359543aa3038d09ac995e513e5c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / tkextrafont-0.6.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tkextrafont-0.6.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
639f5baf05298b0d98b7209fef561c1961ed99adb9abe65eceaa2212d3ccb5fe
BLAKE2b-256 checksum
How to use checksums
f6d6d8d97cf7d0e988319e8a63baa1cbf2068814a36156f754da4b2025628957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / tkextrafont-0.6.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tkextrafont-0.6.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7bf75e028dddda7f329d6d90115e77c84ed47f76dcba914745b1bce9a30b45c8
BLAKE2b-256 checksum
How to use checksums
f405a943e9f0e47cf23aa3a40f3fbf97986fab53ab9549b9f10e7c258989a8af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / tkextrafont-0.6.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL tkextrafont-0.6.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6d1c9829a8e578837f814494f952e7ad3715869303ccd1133791183ef1aa6671
BLAKE2b-256 checksum
How to use checksums
c48738d861530eee7dcd50bae30dd4c534b0c19abd7b373f08e039b278eafa00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.6.3 This release

5 release files

0.6.2

5 release files

0.6.1

5 release files

0.6.0

1 release file

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