On Tue, 2008-05-06 at 08:04 -0400, Ales Hvezda wrote:
> This thread really should be in -dev not -user.

Indeed, although it started on -user to solicit a greater audience of
possible testers and feedback.

> Peter, what version of cairo is required to build this branch now?
> 
> I have 1.4.14 which is in Debian Testing right now. 

Hmm... seems like a line got cutoff somehow in the last patch!

I don't know how far back you _could_ go, but Cairo 1.4 should be fine.
I only recently moved to 1.6.0  myself.


-  cairo_select_font_face (cr, "sans-serif", CAIRO_FONT_SLANT_NORMAL, 
CAIRO_FONT_WEIGHT_NORMAL);
+#ifdef USERFONT_TEXT
+  cairo_set_font_face (cr, gschem_cairo_get_font_face (toplevel));
+#else
+  cairo_select_font_face (cr, "sans-serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT
+#endif


The right extra delta:

-  cairo_select_font_face (cr, "sans-serif", CAIRO_FONT_SLANT_NORMAL, 
CAIRO_FONT
+  cairo_select_font_face (cr, "sans-serif", CAIRO_FONT_SLANT_NORMAL, 
CAIRO_FONT_WEIGHT_NORMAL);

Oops! (Probably a copy-paste error when I fixed the font family name).

> Here's the error message I get:
> 
> gcc -DLOCALEDIR=\"/home/ahvezda/geda/share/locale\" -DHAVE_CONFIG_H -I. -I.. 
> -I/home/ahvezda/geda/include -I../intl -I../include  
> -I/home/ahvezda/geda/include -I/usr/include/gtk-2.0 
> -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo 
> -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
> -I/usr/include/freetype2 -I/usr/include/libpng12   -pthread 
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include     -Wall -g -O2 -MT 
> o_text.o -MD -MP -MF .deps/o_text.Tpo -c -o o_text.o o_text.c
> o_text.c: In function o_text_draw_lowlevl:
> o_text.c:82: error: CAIRO_FONT undeclared (first use in this function)
> o_text.c:82: error: (Each undeclared identifier is reported only once
> o_text.c:82: error: for each function it appears in.)
> o_text.c:89: error: expected ) before ccairo_set_font_size
> o_text.c:209: error: expected ; before } token
> 
> -Ales

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to