Skip to main content

Fonts loader for Tkinter

Project description

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()

License & Copyright

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tkextrafont-0.6.3-py3-none-win_amd64.whl (47.8 kB view details)

Uploaded Python 3 Windows x86-64

tkextrafont-0.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

tkextrafont-0.6.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

tkextrafont-0.6.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

tkextrafont-0.6.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

File details

Details for the file tkextrafont-0.6.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: tkextrafont-0.6.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for tkextrafont-0.6.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f139af112a941058aea9c5c57f886d7e0120d4654f79c162be24dea1ea545659
MD5 b5d0c08fa98732059c5771edf439dbfb
BLAKE2b-256 da49adce1a55d987f8348094496e18235980abf7655c1f5d6916af98e54273f3

See more details on using hashes here.

File details

Details for the file tkextrafont-0.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tkextrafont-0.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5f73d9abd0c7f2fdb9a42e9a5c057f5a6125ed2d2b2df30de47832422f3b79c6
MD5 8123e2fc1d7f489848649e5d2bcc0ac2
BLAKE2b-256 712b835651d6727078657c9fa8b67d53dc4b359543aa3038d09ac995e513e5c8

See more details on using hashes here.

File details

Details for the file tkextrafont-0.6.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tkextrafont-0.6.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 639f5baf05298b0d98b7209fef561c1961ed99adb9abe65eceaa2212d3ccb5fe
MD5 61434827f86b8788352a758622ee6b5f
BLAKE2b-256 f6d6d8d97cf7d0e988319e8a63baa1cbf2068814a36156f754da4b2025628957

See more details on using hashes here.

File details

Details for the file tkextrafont-0.6.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tkextrafont-0.6.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bf75e028dddda7f329d6d90115e77c84ed47f76dcba914745b1bce9a30b45c8
MD5 926118c770adad1c90bca83a5385d57b
BLAKE2b-256 f405a943e9f0e47cf23aa3a40f3fbf97986fab53ab9549b9f10e7c258989a8af

See more details on using hashes here.

File details

Details for the file tkextrafont-0.6.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tkextrafont-0.6.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d1c9829a8e578837f814494f952e7ad3715869303ccd1133791183ef1aa6671
MD5 971649cb5e9aec856dd1a7229c32a84c
BLAKE2b-256 c48738d861530eee7dcd50bae30dd4c534b0c19abd7b373f08e039b278eafa00

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page