Skip to main content

No project description provided

Project description

Nerd Fonts Logo

About this Project

This project is a Python Module that provides a set of icons from the Nerd Fonts project for the usage with Manim. Manim can use any font in principle. Nerd Fonts and their icons can be used in Manim as well! This project allows you to create Nerd Font icons in Manim by referencing the icon name or unicode. This might be more convenient than copy pasting items as strings into your code. This package also takes care of providing a font, so you even don't need to have a nerd font installed on your system.

Installation

Install the package with pip:

   pip install <<todo>>

Minimal Example

Please make sure you have manim installed and running on your machine

Below is a minimal example of how to use the Module.

import manim as m
from manim_nerdfont_icons.icons import nerdfont_icon


class NerdfontIconUnicodeExample(m.Scene):

    def construct(self):
        # Set the background color
        self.camera.background_color = "#ece6e2"

        icon = nerdfont_icon("language-python", color=m.BLUE)

        self.add(icon)


if __name__ == '__main__':
    import os
    from pathlib import Path

    FLAGS = "-pqm"
    SCENE = "NerdfontIconUnicodeExample"

    file_path = Path(__file__).resolve()
    os.system(f"manim {Path(__file__).resolve()} {SCENE} {FLAGS}")

This should yield a Scene that looks like so:

Example Output Screenshot

Documentation

This project uses sphinx for generating the documentation. It also uses a lot of sphinx extensions to make the documentation more readable and interactive. For example the extension myst-parser is used to enable markdown support in the documentation (instead of the usual .rst-files). It also uses the sphinx-autobuild extension to automatically rebuild the documentation when changes are made. By running the following command, the documentation will be automatically built and served, when changes are made (make sure to run this command in the root directory of the project):

sphinx-autobuild ./docs/source/ ./docs/build/html/

If sphinx extensions were added the requirements_dev.txt file needs to be updated. These are the requirements, that readthedocs uses to build the documentation. The file can be updated using this command:

poetry export -f requirements.txt --output requirements.txt --with dev

This project features most of the extensions featured in this Tutorial: Document Your Scientific Project With Markdown, Sphinx, and Read the Docs | PyData Global 2021.

Project details


Download files

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

Source Distribution

manim_nerdfont_icons-1.0.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

manim_nerdfont_icons-1.0.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file manim_nerdfont_icons-1.0.0.tar.gz.

File metadata

  • Download URL: manim_nerdfont_icons-1.0.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for manim_nerdfont_icons-1.0.0.tar.gz
Algorithm Hash digest
SHA256 014adb7aebc1bf5e8e38f5649df11d6d210d3e649a14fb8643c0e54f0844c4e5
MD5 5fbc1dcc09d6959cb7cb568a68da4537
BLAKE2b-256 3ba3e5df00301dcd9a7668f7f798ab197a01fdcbe455764c094cccf084239e69

See more details on using hashes here.

File details

Details for the file manim_nerdfont_icons-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for manim_nerdfont_icons-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44a90d97e8fae0d52b93bd0bf6a14aefc6b0169b00d843f8fa473586e96e88f1
MD5 98b549a3308e0dd30e99bd2e096de96f
BLAKE2b-256 67fbc0a9ede57cbf5380adee7a567cda2b737147f81470612f63693f3442aacd

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