Font and Single Line Font Requests

Hello everyone,

our company uses Rhino for milling and turning. We use a lot of fonts, so it would be nice if you could see the font in the text window. You have to click on each font individually to see what it looks like. This option would save a lot of time.
The second point would be single-line fonts. We had to insert single-line fonts, which cause difficulties during the post-process. Since Rhino doesn’t have any single-line fonts at all, it would be nice to have some that work with the program.

Thanks for the invitation,

Tamara

1 Like

I believe @Alain is investigating the possibility of doing this in the near future.

The Rhino 7 WIP should work with single line fonts. This is a new feature that we have been working on.

1 Like

… see the font in the text window.

I was looking at that yesterday and it will be in a future release.

1 Like

Yay ! Great.
Let’s hope it’s not like nuclear fusion reactors.

Hi @stevebaer,

Is there any documentation on what Rhino expects of a single line font or how it renders it? I started work on such a font but feel I need more information to complete it well.

Regards
Jeremy

There aren’t a whole lot of single line fonts out there and apparently it is pretty tough to detect single line fonts heuristically by looking at individual glyphs. For this reason we currently have a simple list of fonts. If you are working on a new single line font, let’s chat and we can see how we can better support you.

Here is the source code where we keep a “list”

It’s quite an eye opener to see how much code there is to deal with fonts…

Can we start by agreeing some terminology?

If a font is made up of filled area(s) in empty space then a boundary path between fill and emptiness is a contour. A contour has direction and that direction dictates which side is fill. The standards for Truetype, Postscript etc fonts require that contours are closed - i.e. fill is always contained. However it is possible to install a font with unclosed contours in Windows.

In the code there are references to Single Stroke fonts, Double Stroke fonts and Perimeter Stroke fonts. Could you explain what each of these are? My uneducated assumption would be that:

  • Single Stroke fonts might be those with unclosed contours or those with contours closed with an automatic closure line from end point to start point,
  • Double Stroke fonts would have closed contours where closure is obtained by reversing the path back over itself to the start so there is no room for fill, and
  • Perimeter Stroke fonts are normal Truetype, Postscript etc fonts with closed contours always allowing space for fill.

Regards
Jeremy