Code Monkey home page Code Monkey logo

woff2otf's People

Contributors

davelab6 avatar decamp avatar gabrielecirulli avatar hanikesn avatar kakulukia avatar maghoff avatar morille avatar paulcapron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

woff2otf's Issues

OTF not valid on windows

If I convert a WOFF file with this, the resulting OTF can't be opened with the font preview application of Windows 7 nor can it be installed (not a valid font file).

struct.error: 'H' format requires 0 <= number <= 65535

I keep receiving the following traceback:

[user@machine] $ python3 woff2otf.py font1.woff font1.otf
Traceback (most recent call last):
 File "woff2otf.py", line 111, in <module>
    sys.exit(main(sys.argv))
  File "woff2otf.py", line 106, in main
    convert(source_file_name, target_file_name)
  File "woff2otf.py", line 90, in convert
    convert_streams(infile, outfile)
  File "woff2otf.py", line 44, in convert_streams
    outfile.write(struct.pack(">H", searchRange));
struct.error: 'H' format requires 0 <= number <= 65535

I can upload the file I try to convert to a suitable location if you wish to test this.

doesn't work?

I tried to run the command, but I get this error, idk what the problem could be...

bred@BredBook woff2otf-master % python3 woff2otf.py Beausite-Classic_BoldItalic.woff Beausite-Classic_BoldItalic.ttf
Traceback (most recent call last):
  File "/Users/bred/Desktop/woff2otf-master/woff2otf.py", line 110, in <module>
    sys.exit(main(sys.argv))
  File "/Users/bred/Desktop/woff2otf-master/woff2otf.py", line 105, in main
    convert(source_file_name, target_file_name)
  File "/Users/bred/Desktop/woff2otf-master/woff2otf.py", line 89, in convert
    convert_streams(infile, outfile)
  File "/Users/bred/Desktop/woff2otf-master/woff2otf.py", line 43, in convert_streams
    outfile.write(struct.pack(">H", searchRange));
struct.error: 'H' format requires 0 <= number <= 65535

question for hanikesn

@hanikesn message_content

sorry this is not the right place to message someone, but as github has eliminated the contact user feature, I didn't know where else to ask:

i was hoping you or another user could give me a tip on how to use this python script as a basis for another script, or a simple app, or automated workflow—that could handle batch conversions.

As a mac user, I usually drag and drop the script into Terminal and then drag and drop the woff file and press return. This fills in file name and directory automatically, so theoretically, couldn't the script be modified to processes all woffs in a specified directory? My programming skills are limited to basic html, css, javascript, etc... otherwise I would probably know how to do it myself.

Cheers,

@Moscarda | [email protected]

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.