Page 1 of 1

Fonts?

Posted: Thu Nov 12, 2009 4:04 am
by evand
How do I use external fonts with QCAD?

I'm trying to do a laser cutter design. QCAD works quite well for the layout of the various cut parts. However, I don't see how to get text in a font other than those included by default. The fonts that come with QCAD are fine for machining drawings, but for text that actually ends up on the finished part, I need fonts that look good.

Posted: Thu Nov 12, 2009 5:42 pm
by Lorenzo
Maybe you are using Linux, so one thing you can do is to convert a True Type Font in cxf format using ttf2cxf (please refer to this topic).

Posted: Thu Nov 12, 2009 6:24 pm
by evand
Thanks! I'll check that out, it looks like what I was looking for.

Posted: Tue Apr 27, 2010 2:26 pm
by biggocharley
Lorenzo wrote:Maybe you are using Linux, so one thing you can do is to convert a True Type Font in cxf format using ttf2cxf (please refer to this topic).
Since I was unable to find a binary for ttf2cxf, I downloaded the source code here <ftp://ribbonsoft.com/archives/ttf2cxf/t ... src.tar.gz> but can't get it to compile.
I'm not experienced at compiling from source --in fact this is my first attempt. I'm running Ubuntu Jaunty so I scoured the Ubuntu forums for tips on how to compile.
I have been at this for days and am getting nowhere.
This is the result of my latest attempt. When I run "make" I get the following results:
charley@ubuntu1:/usr/local/src/ttf2cxf-0.0.0.1-src$ make
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

I'm stuck at this point --any help will be much appreciated

Posted: Thu Jul 01, 2010 1:28 pm
by Dionysos
Add

#include <math.h>

after

#include <iostream>

You can have a look at this topic.