Phil, Do you have a small test program to illustrate this? It would be useful to check other drivers with. I suspect you are right in that this is on a driver-by-driver basis.
Actually, it's pretty trivial to make a quick check. I just tried putting a \n into the label of the x00 plot. A very quick look at some common drivers suggests that xcairo, epsqt, pscairo, jpgqt support line breaks. xwin, qtwidget, wxwidgets, psc don't support line breaks but produce some strange symbol instead. Note I think this is different to your experience with wxwidgets so it may even be library version dependent. Can you confirm with my simple test and the wxwidgets driver? I have wxwidgets 2.8 installed. So it looks like there is no consistency in approach at the moment. I guess the first step is to decide what we think should happen. Andrew On Wed, Apr 25, 2012 at 05:07:39AM -0700, phil rosenberg wrote: > Hi > I've just hit a small problem using the wxWidgets driver dealing with line > breaks when outputting text. > ? > Basically when I use wxGraphicsContext for on screen display line breaks are > dealt with as I might expect. However when I use a wxDC (e.g. wxMetafileDC) > the line breaks are ignored. I posted on the wxWidgets forum and the issue > seems to be that wxDC does not support (or does not guarentee support for) > line breaks in wxDC::DrawRotatedText(), which is used by?plplot?- it only > supports line breaks in?wxDC::DrawLabel(), but cannot do rotated text using > this function. wxGraphicsContext::DrawText(), which is?again used by > plplot,?can however deal with line breaks and?rotated text. > ? > My thoughts are that it would be good if these were consistent. > ? > Do other drivers support line breaks and is it the general case that drivers > should/should not?support line breaks? I Imagine it's probably on a > driver-by-driver basis. > ? > I'm sure it shouldn't be massively difficult to write some code that parses > line breaks for wxDC. Alternatively (although perhaps a backwards step) line > breaks could be removed when using wxGraphicsContext. > ? > I'm happy to look into writing a patch either way. > ? > Phil > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel