Code Monkey home page Code Monkey logo

test1's Introduction

ufo2ttf.py

Convert a UFO into a ttf file without OpenType tables using minimal processing (compared to fontmake).

Compared to the below it does not decompose glyphs or remove overlaps and curve conversion seems to happen in a different way.

ufo2ttf_fontmake.py

This script should be functionally equivalent to how fontmake converts a UFO to a ttf file except that it excludes the compilation of fea and the renaming of glyphs to production names.

psfchangeglyphsnames.py

Rename the glpyhs in a ttf file based on production names in a UFO using same technique as fontmake. Production names come from ufo.lib.public.postscriptNames according to ufo2ft comments, but I don't know exactly where in the UFO that is.

Installation

The easiest way to install all the needed libraries is to install fontmake. (A smith vm may already have fontmake installed -- see below.) Either of the below should work:

sudo pip install fontmake

or

pip install --user fontmake

If you want to isolate all eleven of the libraries fontmake needs, you can install fontmake in a python virtual environment and run the scripts there. Please note that a virtual environment won't work simply with smith.

If your smith vm already has fontmake installed, try running ufo2ttf.py. If it produces errors concerning modules that cannot be found, you may need to use Python 2 and update the fontmake dependencies:

sudo -H python2 -m pip install fontmake

sudo -H python2 -m pip install --upgrade fontmake

python2 ufo2fea.py

Adding OpenType support

FWIW, OpenType support can be added using fonttools after running either ufo2ttf script. features.fea can be compiled using the command line:

fonttools feaLib [-h] [-o <fn>] [-v] <fea fn> <ttf fn>

test1's People

Contributors

nrsiward avatar

Watchers

 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.