Le 20/08/2013 08:20, Rolf-Werner Eilert a écrit : > Hi folks, hi Benoit, > > just a question about drawing and printing... While other graphic > elements start at upper-left corner, fonts start at lower-left. This is > true for qt4 drawing as well as for Cairo drawing as far as I could see. > > This is confusing when you are not aware, for the page starts at > upper-left with 0,0 too. So when you print a text at 0,0 you will see > nothing, the text is above the border. > > And you have to take the font height into account whenever positioning text. > > In Gambas2, font positioning still started at upper-left, so when > re-writing old code, I always have to tackle with this problem. > > But maybe I just haven't understood the deeper sense behind this? :-) > > Thanks for your insight > > Rolf >
Unless you specify the rectangle and the alignment arguments, text drawing routines normally draws the text at font baseline. -- Benoît Minisini ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user