ttf2cxf
Moderator: andrew
You're absolutely right! It didn't work from Hungary but it did work from the UK. Does RibbonSoft block Hungary?Lorenzo wrote:That link works for me, so your problem is not the link itself. Maybe something related to your Internet access?mondalaci wrote:I've already checked the download link that you offered and the FTP request takes forever and never completes.
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
./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
-
- Junior Member
- Posts: 12
- Joined: Tue Aug 05, 2008 11:11 pm
Re: Previous Post
I had posted this problem on linuxquestions.org <http://www.linuxquestions.org/questions ... ll-878364/>rgenzer wrote:This post:
http://www.ribbonsoft.com/rsforum/viewt ... hlight=cxf
Solved the same problem for me.
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?
-
- Junior Member
- Posts: 12
- Joined: Tue Aug 05, 2008 11:11 pm