On Sun, 2008-05-04 at 22:15 +0000, Kai-Martin Knaak wrote: > On Sun, 04 May 2008 16:34:19 +0100, Peter Clifton wrote: > > > BTW.. Please take a play and see what fonts you like. Search for "Sans" > > in o_text.c. > > I can't find "sans" or "Sans" in o_text.c > grep for "Sans" over the whole pcjc2 dir, returns the localename > "Sanscrit" ;-) > > Maybe you meant some other branch?
Its in the cairo_experiment branch. Grab it again now, I've just pushed fixed code for polygons (which previously broke the build anyway). I now changed "Sans" to "sans-serif", which is in keeping with what the Cairo manual suggests. It doesn't appear that you can pick specific fonts with that API anyway, so its not worth too much effort trying. I just need to do some work to use a specific cairo font-backend to pick a font. (There is a reason they call it the "toy" text API). gschem/src/o_text.c line 78. Also take a look at npn-[1-3].sym for the filled arrows ;) > Isn't it possible to do all the glyph rendering in advance for a couple > of zoom stages? Or even pre-render the whole schematic. I suspect my 3D- > CAD application, varicad, plays these tricks to achieve amazingly fast > zoom for thousands of polygons even on a moderate desktop. I guess it would be possible. Cairo caches them when used, but you could write strings onto a non-visible surface, assuming there is some suitable idle-time to do it. -- 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-user mailing list [email protected] http://www.seul.org/cgi-bin/mailman/listinfo/geda-user

