Draw3dtext line breaks bug

The TextHorizontalAlignment only works for the first line using:
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Display_DisplayPipeline_Draw3dText_1.htm

It seems that any alignment only works properly with the first line.

    var text = "Hello" + Environment.NewLine + "World";
    //var text = "Hello\nWorld";
   
    args.Display.Draw3dText(text, args.WireColour, 
      Plane.WorldXY, 1, "Arial", false, false, 
      Rhino.DocObjects.TextHorizontalAlignment.Center,
      Rhino.DocObjects.TextVerticalAlignment.Top);

Version 6 SR25
(6.25.20114.5271, 04/23/2020)

Related:

@Alain, is this something you can help with?

That does look like a bug. It has been logged.
Thank you for reporting it.

1 Like