ggarlic / ttf2eot

Automatically exported from code.google.com/p/ttf2eot
0 stars 0 forks source link

unknown error parsing input font, m #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I compiled ttf2eot with mingw which comes with Qt 2009.02 and it did not 
gave any warning.

when I try to convert some ttf to eot in my system it start giving same 
error
"unknown error parsing input font, m"

I tried verdana.ttf arial.ttf and papyrus.ttf. what can be the cause ?

Original issue reported on code.google.com by ozkan%az...@gtempaccount.com on 27 Apr 2009 at 4:54

GoogleCodeExporter commented 9 years ago
Same problem, compile log:
$ make
g++    -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp: In function `bool getEOTHeader(unsigned char*, size_t,
std::vector<uint8_t, std::allocator<uint8_t> >&, size_t&, size_t&, size_t&)':
OpenTypeUtilities.cpp:191: warning: invalid access to non-static data member
`sfntHeader::tables' of NULL object
OpenTypeUtilities.cpp:191: warning: (perhaps the `offsetof' macro was used 
incorrectly)
OpenTypeUtilities.cpp:196: warning: invalid access to non-static data member
`sfntHeader::tables' of NULL object
OpenTypeUtilities.cpp:196: warning: (perhaps the `offsetof' macro was used 
incorrectly)
OpenTypeUtilities.cpp:221:18: warning: multi-character character constant
OpenTypeUtilities.cpp:241:18: warning: multi-character character constant
OpenTypeUtilities.cpp:251:18: warning: multi-character character constant
OpenTypeUtilities.cpp:253: warning: invalid access to non-static data member
`nameTable::nameRecords' of NULL object
OpenTypeUtilities.cpp:253: warning: (perhaps the `offsetof' macro was used 
incorrectly)
OpenTypeUtilities.cpp:259: warning: invalid access to non-static data member
`nameTable::nameRecords' of NULL object
OpenTypeUtilities.cpp:259: warning: (perhaps the `offsetof' macro was used 
incorrectly)
g++    -c -o ttf2eot.o ttf2eot.cpp
g++ -o ttf2eot OpenTypeUtilities.o ttf2eot.o

Original comment by yorickvanpelt on 28 Apr 2009 at 10:13

GoogleCodeExporter commented 9 years ago
I've tested it with gcc from cygwin and it seemed to work, I'll try mingw.

Original comment by taviso on 28 Apr 2009 at 12:59

GoogleCodeExporter commented 9 years ago
This change has not fixed the problem.

Original comment by yorickvanpelt on 28 Apr 2009 at 1:27

GoogleCodeExporter commented 9 years ago
Correction, it works now when not using "<" :)

Original comment by yorickvanpelt on 28 Apr 2009 at 1:32

GoogleCodeExporter commented 9 years ago
Okay, I think i've fixed msvc and mingw32 support in svn, it's basically the
translated stdio stuff windows uses that was confusing it.

I wasn't expecting anyone to want to use this on Windows, so hadn't tested it 
until
now :-)

I'll make a release this evening if I don't get any complaints.

Original comment by taviso on 28 Apr 2009 at 2:27