koemaeda / potrace-pixelperfect Goto Github PK
View Code? Open in Web Editor NEWPixel-perfect potrace for FontForge
License: GNU General Public License v2.0
Pixel-perfect potrace for FontForge
License: GNU General Public License v2.0
potrace with fontforge spits out a lot of errors
Copyright (c) 2000-2019. See AUTHORS for Contributors.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
Version: 20190801
Based on sources from 12:20 UTC 13-Nov-2019-ML-D-GDK3.
05:37:45.613 WARNING: GGDKDrawDestroyWindow (/build/fontforge-cmli1H/fontforge-20190801~dfsg/./gdraw/ggdkdraw.c:1371) - Resetting transient owner on 0x5565770e00(Autotracing...) as 0x55658289a0(ClortDamselNormal Untitled1.sfd (ISO8859-1)) is dying
05:37:45.625 WARNING: GGDKDrawDestroyWindow (/build/fontforge-cmli1H/fontforge-20190801~dfsg/./gdraw/ggdkdraw.c:1371) - Resetting transient owner on 0x5565770e00(Autotracing...) as 0x55658289a0(ClortDamselNormal Untitled1.sfd (ISO8859-1)) is dying
environment variable was
export AUTOTRACE="/home/clort/trace/"
In addition, running potrace-pp.py (installed in /usr/local/bin) returns
๐ /home/clort/trace$ potrace-pp.py ttest.bmp
Traceback (most recent call last):
File "/usr/local/bin/potrace-pp.py", line 52, in <module>
imSrc.putpalette( [255,255,255, 0,0,0] if len(imSrc.getcolors()) > 1 else [0,0,0] )
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1701, in putpalette
raise ValueError("illegal image mode")
ValueError: illegal image mode
These errors were perhaps caused by saving the .bmp as an rgb image.
Potrace-pp.py on the greyscale version yielded a lot of cpu use, then the text 'Killed'
potrace-pp.py on a 1-bit b/w .bmp also returned "Killed"
potrace-pp.py on a single-character, 16x23 greyscale bmp that had been first reduced to 2-bit b/w yield the result:
๐ /home/clort/trace$ potrace-pp.py ttest.bmp
Traceback (most recent call last):
File "/usr/local/bin/potrace-pp.py", line 73, in <module>
potrace = Popen(args, stdin=PIPE, stdout=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
๐ /home/clort/trace$ ls -l ttest.bmp
-rw-r--r-- 1 clort clort 1514 Jan 16 06:09 ttest.bmp
Could author or another user please attach a .bmp that can be traced with potrac-pp, along with the potrace-pp.py invocation that can trace it? What should I expect as output?
Could author or another user attach a .bdf that can be imported into a new fontforge project (as background) that successfully traces?
Thanks!
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.