Bug? GH Text explode changes font

Hi All,

Tried to explode Text Entity in GH and got font changed.

With some fonts works, some not.

In Rhino itself the explosion works correctly.

Any workaround?

Hi @Screamer,

Can you upload a .GH file with the text internalized?

What version of Rhino do you use?

Thanks,

– Dale

Hi @dale ,

Sure, sorry for not doing it from the beginning.

Latest V8 Rhino.

TextExplode.gh (17.5 KB)

@AndyPayne - is this something you could help with?

Hi @Screamer,

This will be fixed on v8.31.
Thanks for reporting.

great this gets update, was strungleing with this as well today (looked like a weird offset, turns out defaulted to another font :hot_face: )

@Screamer , since it works within rhino, we can use this as temp fix for now i suppose, seems to work for me:

import Rhino
import Grasshopper as gh

# Input: text_input (Tree Access, Type Hint: TextEntity)
# Output: curve_output

curve_output = gh.DataTree[Rhino.Geometry.Curve]()

if text_input is not None:
    for i in range(text_input.BranchCount):
        path = text_input.Path(i)
        branch = text_input.Branch(i)
        
        for j, text_entity in enumerate(branch):
            if text_entity is not None:
                curves = text_entity.Explode()
                
                if curves:
                    new_path = path.AppendElement(j)
                    curve_output.AddRange(curves, new_path)