On Wed, 2008-05-07 at 19:49 +0000, Kai-Martin Knaak wrote: > Hi Peter, > > text seems to be sensitive to mouse-click at the areas of the old geda > font rather than the area of the glyph. In most cases this is no problem. > But if the text is just the digit "1", I have to click left of the glyph > to select. This would be fixed by a ttf version of the geda font. > However, it would be better to use the actual dimensions of the glyph.
Indeed.. the hit detection needs to either: 1. Ask cairo how big a given text string would render (for each hit detection pass)... this is not good! 2. Stash a copy of the real bounds somewhere. (This goes back to something we were trying to avoid, as libgeda is not the place for storing screen coordinates from one (of potentially multiple) client views onto an object. I'm sure I'll be able to cook something up to fix this.. just might take me a little while. Best wishes, -- 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
