Git Product home page Git Product logo

font-tool's Introduction

font-tool

Check if b2g supports a particular locale font-wise.

You'll need to update the moztt and base submodules to the revisions you test, and run the script as

python buildfonts.py path/to/mozilla/repo ab-CD

The tools relies on font-config to do the heavy lifting. The tool is currently only catching the Regular font weights, etc.

If you're running the tool for the first time, make sure to get the submodule repositories,

git submodule update --init

font-tool's People

Contributors

pike avatar

Watchers

James Cloos avatar

font-tool's Issues

Base directory path 'moztt'

Looks like my script is missing moztt path:

$ python buildfonts.py ~/src/mozilla-central vi
Traceback (most recent call last):
File "buildfonts.py", line 67, in
'moztt', 'base/data/fonts']).split('\n'):
File "/usr/lib/python2.7/subprocess.py", line 575, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['fc-scan', '-f', '%{family}^%{style}^%{file}\n', 'moztt', 'base/data/fonts']' returned non-zero exit status 1

KeyError: 'Fira Mono OT'

$ python buildfonts.py ~/src/mozilla-central en
monospace
Traceback (most recent call last):
File "buildfonts.py", line 77, in
subprocess.call(['fc-validate', '-l', sys.argv[2], fontfiles[__f]])
KeyError: 'Fira Mono OT'

ImportError: No module named Preprocessor

$ python buildfonts.py moztt bn-BD
Traceback (most recent call last):
File "buildfonts.py", line 39, in
from Preprocessor import preprocess
ImportError: No module named Preprocessor

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.