Hi, On Fri, Mar 18, 2011 at 11:34 AM, Mickaël Gadroy <[email protected]> wrote: > Hi all, > > I would like to know if the use of : > int GLPainter::drawText ( const Eigen::Vector3d &pos, const QString &string > ) > is "equals to" (performance, issuie known ...) (with the fonts support) : > int GLPainter::drawText(const Eigen::Vector3d &pos, const QString &string, > const QFont &font) > ? > > I'm curious because I've never seen used of the 2nd method (and it works > differently). It might be interesting to change style depending on the > features (autooptool, clickmeasuretool ...). And I wanted to use it to > increase the size of the default font. Do you think this is the correct > method for this ? > The second signature is new, changing the fonts, size etc is likely to perform worse as more glyphs will need to be generated. Changing color should not hit this, but font face, size, style etc would.
Marcus ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Avogadro-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/avogadro-devel
