Code Monkey home page Code Monkey logo

mftrace's People

Contributors

hanwen avatar hanwenlp avatar juliangilbey avatar sophiebits avatar stanislav-brabec avatar

Stargazers

 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

mftrace's Issues

Two little buglets remaining...

Hi Han-Wen,

Just updating the Debian package, and stumbled across two little bugs in the new version:

  • GNUMakefile.in uses "echo -e" to generate the version.texi file. Unfortunately, that doesn't work correctly with all shells, and may result in "-e" appearing at the top of the README.txt file. Better is to replace "echo -e" with "printf".
  • The VERSION setting in configure.in needs to be updated.

Best wishes,

Julian

Trouble with calling "fontforge -usage/-help/--help"

Some versions of fontforge (e.g. the latest version 20120731) open a web browser not just for -usage but for -help, too. Despite their docs saying otherwise. Proof:

# strace -eprocess -F fontforge -help |& fgrep xdg-open
[pid  3966] execve("/bin/sh", ["sh", "-c", "\"xdg-open\" \"http://fontforge.sf."...], [/* 63 vars */]) = 0
execve("/usr/bin/xdg-open", ["xdg-open", "http://fontforge.sf.net/overview"...], [/* 61 vars */]) = 0

# fontforge -version
Copyright (c) 2000-2012 by George Williams.
 Executable based on sources from 14:57 GMT 31-Jul-2012.
 Library based on sources from 14:57 GMT 31-Jul-2012.
fontforge 20120731
libfontforge 20120731

While you could argue that the bug should be fixed in fontforge, there's an easy fix to make mftrace work for users of that fontforge version, too: I propose to turn the fontforge command detection from calling fontforge -usage to calling fontforge -version. Many thanks for your consideration.

mftrace 1.2.20 chokes on a file

Dear Han-Wen,

Thanks for mftrace! I am loving it. Here are my two cents: looks like mftrace 1.2.20 chokes on some files, e.g.:

sample.zip

The error:

s = (self.left[1:1 + b]).decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 0: ordinal not in range(128)

The command was:

mftrace -f PFB zcmib5.mf

I’ve run this with mftrace 1.2.19, and all went smooth with that version.

Best regards!

Fixes for 1.2.18

The calls to p.add_option() for --potrace and --autotrace have no action attributes. Due to this some options are always set to defaults. My patch fixes this issue. Also, it removes redundant empty parameters for p.add_option() and fixes the issue with calling fontforge which now lacks -usage option.

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.