Giter Site home page Giter Site logo

justvanrossum / fontgoggles Goto Github PK

View Code? Open in Web Editor NEW
380.0 19.0 41.0 48.15 MB

FontGoggles: Visual OTL Preview and QA

License: Apache License 2.0

Python 99.58% Shell 0.04% Objective-C 0.25% Rich Text Format 0.14%
cocoa font fonts macos-app python

fontgoggles's Introduction

FontGoggles Icon

FontGoggles

Interactive Previewing and Comparing

For end-user documentation see fontgoggles.org.

The lastest release can be downloaded here.

FontGoggles was funded by Google Fonts.

Brief description

FontGoggles is a font viewer desktop app for macOS that supports these file formats:

  • .otf, .ttf, .otc, .ttc, .woff, .woff2
  • .ufo
  • .designspace
  • .ttx

It uses HarfBuzz for line layout, so it supports complex scripts. The source formats are partially compiled on the fly, so their line layout and variation behaviour can be realistically previewed.

When a font file changes on disk, FontGoggles will automatically reload it and show the updated version.

Build instructions

If you want to build and run the app from the source, follow these instructions.

  • Make sure you have Python 3.7 installed, preferably from python.org, but homebrew may work, too. (3.8 may work, but I didn't check whether all our dependencies are available.)

  • Clone this repository.

  • cd into the repository folder.

  • Setup a virtual environment:

    $ python3.7 -m venv venv --prompt=fontgoggles

  • Activate the environment:

    $ source venv/bin/activate

  • Update pip:

    $ pip install --upgrade pip

  • Install dependencies:

    $ pip install -r requirements.txt

  • Install dev dependencies:

    $ pip install -r requirements-dev.txt

  • Install our lib:

    $ pip install .

  • Or, if you prefer an editable install of our lib:

     $ pip install -e .
     $ ./Turbo/build_lib.sh
    

    (The latter step builds a required C library, that otherwise wouldn't get built in editable mode.)

  • Run some tests:

    $ pytest

  • Build the application:

    $ python App/setup.py py2app

You'll find the built application in App/dist/

Now you can drop some fonts onto the app, or a folder containing fonts.

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.