grossman / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 2 forks source link

Improve multiline support #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using "\n" in labels, sometimes the results are not the best.

For example this file:

msc {

  a, b;

  --- [ label = "a\nb" ];

}

It's rendered with 2 horizontal dotted lines instead of one, that would be
what one expect. Other arrows (like ->) with multiple lines are rendered
fine (one line only) but the text hides the line.

Original issue reported on code.google.com by llu...@gmail.com on 16 Oct 2009 at 7:11

GoogleCodeExporter commented 8 years ago
Yup - that's a bug!  It should draw a single dotted line with 'a' and 'b' 
vertically
centred on it.

Original comment by Michael....@gmail.com on 18 Oct 2009 at 10:58

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r102.

Original comment by Michael....@gmail.com on 18 Oct 2009 at 12:59

GoogleCodeExporter commented 8 years ago
How about the multiline labels hiding the lines? It can be fixed or it's that
supposed to work that way?

Thanks for the fix.

Original comment by llu...@gmail.com on 18 Oct 2009 at 11:34

GoogleCodeExporter commented 8 years ago
Can you give me an example of where you are seeing that?  e.g. SVG, PNG or EPS?

Original comment by Michael....@gmail.com on 19 Oct 2009 at 6:50

GoogleCodeExporter commented 8 years ago
Attached.

Is not terrible, just a little confusing for long lines.

Thanks!

Original comment by llu...@gmail.com on 19 Oct 2009 at 7:07

Attachments:

GoogleCodeExporter commented 8 years ago
Hmm.  I thought I had it so that the line would run through there, but 
apparently
not.  I'll take a second look.

Original comment by Michael....@gmail.com on 19 Oct 2009 at 7:10

GoogleCodeExporter commented 8 years ago
Thanks :)

Original comment by llu...@gmail.com on 19 Oct 2009 at 8:15

GoogleCodeExporter commented 8 years ago
This works okay on top of trunk (I checked both with and without Freetype 
support).
Also, the other option would be to use more than 2 lines so that text is 
shorter.

Original comment by Michael....@gmail.com on 17 Aug 2010 at 11:59

Attachments: