ttf2cxf

Use this forum to ask questions about how to do things in the QCAD Community Edition.

Moderator: andrew

ttf2cxf

Postby mondalaci » Tue Jul 20, 2010 11:26 pm

Hi guys,

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

Thanks,
Laci
mondalaci
Newbie Member
 
Posts: 5
Joined: Tue Jul 20, 2010 11:46 am

Postby Lorenzo » Thu Jul 22, 2010 8:05 am

Please have a look here to download the source code and here for the usage.

Bye
Lorenzo
Junior Member
 
Posts: 24
Joined: Wed Jun 04, 2008 12:09 pm

Postby mondalaci » Thu Jul 22, 2010 1:17 pm

I've already checked the download link that you offered and the FTP request takes forever and never completes.
mondalaci
Newbie Member
 
Posts: 5
Joined: Tue Jul 20, 2010 11:46 am

Postby Lorenzo » Thu Jul 22, 2010 2:03 pm

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?
Lorenzo
Junior Member
 
Posts: 24
Joined: Wed Jun 04, 2008 12:09 pm

Postby mondalaci » Thu Jul 22, 2010 3:50 pm

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?
mondalaci
Newbie Member
 
Posts: 5
Joined: Tue Jul 20, 2010 11:46 am

Postby mondalaci » Fri Jul 23, 2010 3:19 am

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
mondalaci
Newbie Member
 
Posts: 5
Joined: Tue Jul 20, 2010 11:46 am

Previous Post

Postby rgenzer » Sun Apr 24, 2011 2:27 pm

This post:

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

Solved the same problem for me.
rgenzer
Registered Member
 
Posts: 2
Joined: Sun Apr 24, 2011 2:22 pm

Re: Previous Post

Postby biggocharley » Sat May 14, 2011 7:23 pm

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/programming-9/compile-and-install-from-a-tarball-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?
biggocharley
Junior Member
 
Posts: 12
Joined: Tue Aug 05, 2008 11:11 pm

Postby biggocharley » Sat May 14, 2011 10:27 pm

Oops!! I had inadvertently put my ttf file into the wrong directory-- corrected this and the program works fine.
biggocharley
Junior Member
 
Posts: 12
Joined: Tue Aug 05, 2008 11:11 pm


Return to QCAD Community 'How Do I' Questions

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests

cron