Fonts?

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

Moderator: andrew

Fonts?

Postby evand » Thu Nov 12, 2009 4:04 am

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.
evand
Newbie Member
 
Posts: 3
Joined: Sun May 20, 2007 6:45 pm

Postby Lorenzo » Thu Nov 12, 2009 5:42 pm

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

Postby evand » Thu Nov 12, 2009 6:24 pm

Thanks! I'll check that out, it looks like what I was looking for.
evand
Newbie Member
 
Posts: 3
Joined: Sun May 20, 2007 6:45 pm

Postby biggocharley » Tue Apr 27, 2010 2:26 pm

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/ttf2cxf-0.0.0.1-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
biggocharley
Junior Member
 
Posts: 12
Joined: Tue Aug 05, 2008 11:11 pm

Postby Dionysos » Thu Jul 01, 2010 1:28 pm

Add

#include <math.h>

after

#include <iostream>

You can have a look at this topic.
Dionysos
Newbie Member
 
Posts: 6
Joined: Mon Jun 28, 2010 1:03 pm


Return to QCAD Community 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 1 guest