zoltan-dulac / css3FontConverter

A shell script that can use other command line tools to produce @font-face compatible fonts in all browsers. Works under Windows (using Cygwin), Mac OS X and Linux
http://www.useragentman.com/blog/2011/02/20/converting-font-face-fonts-quickly-in-any-os/
390 stars 61 forks source link

--autohint gives "No such file or directory" #4

Closed Markus00000 closed 10 years ago

Markus00000 commented 10 years ago
% ./convertFonts.sh --autohint SourceSansPro-Regular.ttf
Hinting SourceSansPro-Regular.ttf ...
ttfautohint: unrecognized option '--components'
Converting hinted-SourceSansPro-Regular to eot (hinted-SourceSansPro-Regular.ttf)
which: no EOTFAST-1 in (/usr/local/sbin:/usr/local/bin:/usr/bin)
(Using ttf2eot)
could not open input file hinted-SourceSansPro-Regular.ttf, No such file or directory
Converting hinted-SourceSansPro-Regular to svg
PythonUI_Init()
Converting hinted-SourceSansPro-Regular to woff
# fatal error: unable to open file hinted-SourceSansPro-Regular.ttf
Writing Stylesheet ...
Font: hinted-PythonUI_Init()
grep: hinted-SourceSansPro-Regular.svg: No such file or directory
DONE!
zoltan-dulac commented 10 years ago

@Markus00000: What OS are you running the converter on? I don't have the same issue and wonder if it's platform dependent.

Markus00000 commented 10 years ago

I just noticed that I tried to convert Source Sans Pro. That's an OpenType font from Adobe. Downloading it from Google Fonts gives a TTF. I tried to run ttfautohint on that TTF and it worked. Doing the same for the OTF didn't ("This font is not a valid font in SFNT format with TrueType outlines.").

To be sure the problem wasn't caused by the font, I put Open Sans (TTF) through the converter using --autohint and it produced the same output as posted above (No such file etc.). After this step, I have OpenSans-Regular.ttf and hinted-OpenSans-Regular.eot in the directory, so it makes sense that hinted-OpenSans-Regular.ttf is not found.

I'm on Arch Linux.

mundschenk-at commented 10 years ago

You are basing your command line arguments on an outdated version of ttautohint. As of 0.96, the option "--components" has been replaced by "--composites". http://sourceforge.net/projects/freetype/files/ttfautohint/0.96/

zoltan-dulac commented 10 years ago

Hey there.

Thanks for the tip! I obviously haven't updated this in a while. I'll see if I can fix this in the next few days. Much appreciated!

Cheers, Zoltan.

On Mon, Aug 18, 2014 at 5:07 PM, pep- notifications@github.com wrote:

You are basing your command line arguments on an outdated version of ttautohint. As of 0.96, the option "--components" has been replaced by "--composites". http://sourceforge.net/projects/freetype/files/ttfautohint/0.96/

Reply to this email directly or view it on GitHub https://github.com/zoltan-dulac/css3FontConverter/issues/4#issuecomment-52555380 .

Zoltan Hawryluk. Client-side web technology specialist.

e: zoltan.dulac@gmail.com t: @zoltandulac w: http://www.useragentman.com

zoltan-dulac commented 10 years ago

@Markus00000 @pep- I have fixed the above bug, along with adding WOFF2 support. This has been tested extensivelym but if you see any issues, please let me know.

mundschenk-at commented 10 years ago

Seems to work fine, yes.

zoltan-dulac commented 10 years ago

Excellent!! Thanks for getting back to me!

On Tue, Sep 2, 2014 at 2:50 PM, pep- notifications@github.com wrote:

Seems to work fine, yes.

Reply to this email directly or view it on GitHub https://github.com/zoltan-dulac/css3FontConverter/issues/4#issuecomment-54199336 .

Zoltan Hawryluk. Client-side web technology specialist.

e: zoltan.dulac@gmail.com t: @zoltandulac w: http://www.useragentman.com