hanwen / mftrace Goto Github PK
View Code? Open in Web Editor NEWTrace bitmaps in scalable fonts
Home Page: http://lilypond.org/mftrace/
License: GNU General Public License v2.0
Trace bitmaps in scalable fonts
Home Page: http://lilypond.org/mftrace/
License: GNU General Public License v2.0
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.:
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!
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.
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.
Hi Han-Wen,
Just updating the Debian package, and stumbled across two little bugs in the new version:
Best wishes,
Julian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.