Page 1 of 1

ttf2cxf

Posted: Tue Jul 20, 2010 11:26 pm
by mondalaci
Hi guys,

I'd like to use the ttf2cxf utility but I cannot find it anywhere. Please help me out!

Thanks,
Laci

Posted: Thu Jul 22, 2010 8:05 am
by Lorenzo
Please have a look here to download the source code and here for the usage.

Bye

Posted: Thu Jul 22, 2010 1:17 pm
by mondalaci
I've already checked the download link that you offered and the FTP request takes forever and never completes.

Posted: Thu Jul 22, 2010 2:03 pm
by Lorenzo
mondalaci wrote:I've already checked the download link that you offered and the FTP request takes forever and never completes.
That link works for me, so your problem is not the link itself. Maybe something related to your Internet access?

Posted: Thu Jul 22, 2010 3:50 pm
by mondalaci
Lorenzo wrote:
mondalaci wrote:I've already checked the download link that you offered and the FTP request takes forever and never completes.
That link works for me, so your problem is not the link itself. Maybe something related to your Internet access?
You're absolutely right! It didn't work from Hungary but it did work from the UK. Does RibbonSoft block Hungary?

Posted: Fri Jul 23, 2010 3:19 am
by mondalaci
I could download the tarball but I got a library related error upon execution even if I install (the deprecated) libstdc++.so.5:

./ttf2cxf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

The output of make neither looks encouraging:

g++ -o ttf2cxf -I/usr/include/freetype2 -lfreetype main.cpp
main.cpp: In function ‘int conicTo(FT_Vector*, FT_Vector*, void*)’:
main.cpp:92: error: ‘pow’ was not declared in this scope
main.cpp: In function ‘FT_Error convertGlyph(FT_ULong)’:
main.cpp:152: warning: format ‘%04X’ expects type ‘unsigned int’, but argument 3 has type ‘FT_ULong’
make: *** [all] Error 1

Previous Post

Posted: Sun Apr 24, 2011 2:27 pm
by rgenzer
This post:

http://www.ribbonsoft.com/rsforum/viewt ... hlight=cxf

Solved the same problem for me.

Re: Previous Post

Posted: Sat May 14, 2011 7:23 pm
by biggocharley
rgenzer wrote:This post:

http://www.ribbonsoft.com/rsforum/viewt ... hlight=cxf

Solved the same problem for me.
I had posted this problem on linuxquestions.org <http://www.linuxquestions.org/questions ... ll-878364/>
I copied the arial.ttf font file to the same directory as the binary, ttf2cxf, which in my case is a folder /ttf2cxf/ttf2cxf-0.0.0.1-src
Since I have a 32 bit system it seems that the binary should work as is. After correcting a missing lib file, this is the result of trying to run the command

charley@mint-2 ~/ttf2cxf/ttf2cxf-0.0.0.1-src $ ./ttf2cxf arial.ttf arial.cxf
TTF file: arial.ttf
CXF file: arial.cxf
FT_New_Face: Unknown error
Segmentation fault

What is a "Segmentation fault"? Obviously I'm doing something wrong --any ideas what it is?

Posted: Sat May 14, 2011 10:27 pm
by biggocharley
Oops!! I had inadvertently put my ttf file into the wrong directory-- corrected this and the program works fine.