Giter VIP home page Giter VIP logo

monospaci.py's Introduction

Monospaci.Py

< THIS IS A FORK OF THE ORIGINAL REPO FOR THE SOLE PURPOSE OF UPDATING THE SCRIPT TO PYTHON 3 >

monospaci.py is a Python script utilizing Fontforge, ttftable, and [ttfautohint] (http://www.freetype.org/ttfautohint/) to scale ordinary variable-width fonts to fixed-width suitable for programming in IDE:s, text editors or terminal emulators.

Motivation

Originally this script was created due to the authors favour of Serif:ed fonts and the general lack of such high quality Serif:ed fonts (there are like three of them[1]), and a bazillion of Monospace Sans fonts[2]. Thus this script became a biproduct of trying to making the venerable Computer Modern fit into a Terminal.

How

Lowercase letters are kept as-is (with the exceptions of m and w). Uppercase letters are re-scaled in width to fit the lower case ones. The re-scaling works somewhat, due to most text being lowercase, and most lowercase letters having the same width (with the notable exception of i,j,w, and m).

Drawbacks

The kerning may get slightly off, but I haven't been bothered by this much, also uppercase letters can get quite badly scaled (note 'Q' in Garamond below, 'M', and 'W' may in some cases get too thin lines.

Examples

Some examples below, do note that the depicted fonts aren't available from here, but easily re-created from the linked Original sources:

C with JUnicode Mono

JUnicode, excellent for studying old languages. (Original)

.vimrc with Sniglet Mono

Sniglet Mono, when your vim needs more kittens. (Original)

C++ with EB Garamond Mono)

EB Garamond Mono, when your C++ isn't classy enough (Original)

Python with Fifth Leg Mono)

Fifth Leg Mono, thinking inside the box with Python (Original)

Java with Comic Sans MS Mono

Comic Sans MS Mono, really makes your Java pop!

JavaScript with Papyrus Mono

Papyrus Mono, give your JavaScript that antique look!

[1]: "Courier, Century SchoolBook Mono BT, and Verily Serif" [2]: "Too many to mention"

monospaci.py's People

Contributors

arnognulf avatar ducklin5 avatar

monospaci.py's Issues

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.