Bug with TextEntity alignment in Rhino 8?

I am re-using some of my Rhino plugin code to create grasshopper components. The grasshopper components are being built against Rhino 8, using .net 7. My Rhino plugin is still targeting Rhino 7 and .net framework.

What’s confusing me is that I have the exact same code between the 2, but the TextEntity is behaving differently in my grasshopper code.

Basically I am trying to draw some text at a given point and have it centred on the point. This works in my Rhino plugin, but in my grasshopper code the DimensionStyle has no effect on where the text is rendered.

    public void DrawViewportWires(GH_PreviewWireArgs args)
    {
        foreach (var grid in _geometry.Grids)
        {
            using var style = new DimensionStyle
            {
                TextVerticalAlignment = TextVerticalAlignment.Middle,
                TextHorizontalAlignment = TextHorizontalAlignment.Center,
            };

            var plane = new Plane(grid.Bubble.Center, Vector3d.ZAxis);
            using var text = TextEntity.Create(grid.Name, plane, style, false, 0, 0);

            args.Pipeline.DrawLine(grid.Line, args.Color);
            args.Pipeline.DrawCircle(grid.Bubble, args.Color);
            args.Pipeline.DrawPoint(grid.Bubble.Center, args.Color);
            args.Pipeline.DrawText(text, args.Color);
        }
    }

The text appears to be positioned Top, Left.

image