Git Product home page Git Product logo

fontcrusher's People

Contributors

acelewis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fontcrusher's Issues

Missing `keep_these_glyphs` function?

I'm trying to crush a font using your library with the following code:

glyphs_to_keep = fontcrusher.get_glyphs_from_file(GLYPH_WHITE_LIST_FILE)
crushed_font = fontcrusher.load_and_crush_font(FONT_FILE, glyphs_to_keep)

but I'm getting this error:

File "/usr/local/lib/python2.7/site-packages/fontcrusher/fontcrusher.py", line 19, in load_and_crush_font
    return keep_these_glyphs(original_font, glyphs)

Looking at the source code for fontcrusher, I can't find where keep_these_glyphs() is defined. It doesn't seem to be provided by fonttools either. Where should I get that function?

Impossible to make it work

This is really not easy to use for people who don't do python all day

It seems like it's made for windows at first sight so I tried to make it work but:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/.local/lib/python3.4/site-packages/fontcrusher/find_used_glyphs.py", line 43, in find_used_glyphs
    for file in glob.iglob(include_arg[0], **include_arg[1]):
TypeError: iglob() got an unexpected keyword argument 'recursive'

Now i'm trying to make the example.py work but the path is wrong ofc

I try to edit this but no idea what it means: include_argument = [[r'./website_folder/**\*', {'recursive': True}]]

Then:

Traceback (most recent call last):
  File "example.py", line 17, in <module>
    used_glyphs = find_used_glyphs.find_used_glyphs(include_argument, regex_for_find, exclude_args=exclude_arg)
  File "/home/user/.local/lib/python3.4/site-packages/fontcrusher/find_used_glyphs.py", line 43, in find_used_glyphs
    for file in glob.iglob(include_arg[0], **include_arg[1]):
TypeError: iglob() got an unexpected keyword argument 'recursive'

So I removed , {'recursive': True} and got:

FFTM NOT subset; don't know how to subset; dropped

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.