Grasshopper: Not rendering correct font

I have a fairly old script, that I have used extensively in the past, which uses the SQUID components Font and Text Curves to create font outlines in Grasshopper.

Now I noticed that for some fonts it does not render the correct outlines. It looks like it is just rendering Arial as a fallback.

I am getting the name of the font from Font List, so it should be correct and works fine for most fonts, but not for the one in question: Univers 93 Extended Black. We have the regular purchased version from Linotype, which is an .otf file:

Here I am using the font in Grasshopper and its not showing the correct font:

As you can see it is not using the correct font.

Using a text object in Rhino (7) I can create text with the font in question just fine:

Any ideas? @MateuszZwierzycki

squid-font-bug.zip (31.7 KB)

I am bumping this thread, as it is still unresolved.

I simply can’t render a .otf font properly in Grasshopper any more. This used to work fine.

Both SQUID and Nautilus are both producing the same result, by rendering some fallback font (probably Arial). I am also a bit surprised that neither plugins show any kind of error information as to why it is using the fallback.

@laurent_delrieu @MateuszZwierzycki @DavidRutten

I am really stuck on this one as I don’t even know where to begin debugging this. None of the components show any error.

Rhino renders the font correctly. Any other graphical program like Figma, Illustrator, etc. all render the font just fine. So it must be something with the way Grasshopper reads/uses fonts that is broken.

We have a whole business built on a couple of Grasshopper files to produce sculptures with this font, so we are very reliant on it working correctly. I really don’t know what to do any more. I am already just using Rhino 7.
squid-nautilus-font-bug.gh (22.3 KB)
UniversLTStd-XBlackEx.zip (22.7 KB)

Maybe this is a bit of shameless self-promoting, but have you tried froGH’s Text To Geometry component? It seems to work on my system (Rhino 7)

If you right-click on the component, you can choose among polylines, curves, or surfaces output.

2 Likes

Thanks for checking it with your plugin. I love those plugins that just came out of necessity and solve some of the problems that weren’t easy to solve with other plugins.

Will check it out and report back!

Huh.. wtf. I guess its an overall problem.

It looks like whatever system Rhino/Grasshopper is using for loading the fonts has some automatic fallback that does not trigger an error. :confused:

I removed all Univers fonts from my system, restarted and then installed them again. Now all the plugins work the same way.

I would still like to know why it failed only in Grasshopper and nowhere else, including Rhino.

For now that seems to solve it.

1 Like

Hello
I am not sure for others, but in Nautilus uses that, nothing special just the uses of Rhinocommon.

 Rhino.DocObjects.Font font = new Rhino.DocObjects.Font(face, fontWeight, fontStyle, underlined, strikethrough);
TextEntity text_entity = new TextEntity...

https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.font
https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.textentity

I don’t catch error as I don’t know if there is an error indicator!
perhaps this ?
https://developer.rhino3d.com/api/rhinocommon/rhino.docobjects.font/issimulated#

Very strange then, that it would work in Rhino, but not Grasshopper. Especially now that it is working again after re-installing the font.

Fonts are of course their own complex topic, especially when it comes to “real” font families. A “normal” font has its own variants, usually italic, bold and underlined, although that is more of an added property, inside one file. But real font families don’t have those variants inside the font file, but instead have individual font files for each style. That is also the case with Univers. It has around 30 or so variants, each of which is a separate file.

It’s usually those proper font families that cause issues, because they work slightly differently. Lots of software tools struggle with them, because now you can’t just show “Univers” as the font and then have bold and italic as options. Now you either need to show all fonts individually, meaning you have like 30 entries for Univers, like “Univers 11 Light”, “Univers 12 Light Italic”, etc. Or you just show the font families, but then need a 2nd dropdown to select the style.

Graphical software (Figma, Illustrator, InDesign, etc.) can of course all handle these proper font-families, but a lot of other tools do not.

I am pretty certain this handling of different types of fonts was the problem here, but somehow re-installing helped.