Giter VIP home page Giter VIP logo

smoltext's Introduction

Smoltext

A font converter utility with the extra fonts included in utf8.

$ smoltext -h
usage: smoltext [-h] [-c] [-f FONT] [--list-fonts] [text [text ...]]

A font converter utility with the extra fonts included in utf8.

positional arguments:
  text                  text to process

optional arguments:
  -h, --help            show this help message and exit
  -c, --copy            copies processed text to clipboard
  -f FONT, --font FONT  which font to use
  --list-fonts          list all supported fonts
$ smoltext -f italic hello
𝘩𝘦𝘭𝘭𝘰
$ smoltext -f subscript hello
ʰᵉˡˡᵒ
$ _

Installation

With pip:

pip3 install --upgrade --user smoltext

With git:

git clone https://git.sr.ht/~sofi/smoltext/ && cd smoltext
pip3 install --upgrade build
python3 -m build
pip3 install dist/smoltext-*.whl

Current Features

  • Processes text input and gives an output of the desired font.
  • List out all available fonts with previews.
  • Easy to use CLI commands.

Tips & Tricks

You can use xclip or wl-copy to automatically copy the processed output to your clipboard.

Under xorg with xclip:

smoltext Hello! | xclip -sel clip

Under wayland with wl-copy:

smoltext Hello! | wl-copy

Common issues

  • Certain browsers and terminals fail to render certain font styles regardless of font.
  • Kerning can be off due to terminals using a monospaced font.
  • Certain fonts don't include all font styles used in this package.

Links

smoltext's People

Contributors

soupglasses avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.