Skip to content

With FreeSerifBoldItalic, don't ever write "zj"!

Update: Here is "VX" with FreeSerifItalic. There is overlap in LibreOffice also.

For the most part truetypetracer produces valid and nice input data for testing openvoronoi. But sometimes I see wiggles, and now this:

It is frustrating to try to track down bugs in downstream algorithms that take this as input, and assume all line-segments are non-intersecting when in fact the are not!

I seem to have only 13 .ttf files in my /usr/share/fonts/truetype/freefont folder, but maybe there are more elsewhere. I should find a font that is properly designed without wiggles and without overlaps. The other approach is to write a pre-processor that looks at input data and either rejects or cleans it. Looking for all pair-wise intersections of N line-segments is a slow N^2 algorithm - at least for a naive implementation (without bounding-boxes or binning or other tricks).

Unlike the wiggles, this overlap doesn't happen in Inkscape:

Here is G-code generated with ttt-4.0 and drawn in LinuxCNC:

Here is a screenshot from LibreOffice 3:

and GIMP:

3 Comments

  1. jens wrote:

    sort of nonBalkan scripth...

    Tuesday, January 24, 2012 at 21:25 | Permalink
  2. anders wrote:

    It appears that there should be "kerning" offset in addition to the normal offset to the right we apply when rendering the next character. I'm not sure how to retrieve this from the TTF or the freetype interface.

    Maybe along these lines:
    http://www.freetype.org/freetype2/docs/tutorial/step2.html

    Wednesday, January 25, 2012 at 10:10 | Permalink
  3. craig huzway wrote:

    I work with this type of thing from time to time. Every font is different and these problems are common. for printing this stuff does not show up. For machining we need better lines than the stock font is done in. I always zoom in like that and have to fix the lines to be able to cut correctly. get used to it or create your own lines for the font. Maybe somebody out there has created machine friendly fonts, I have been looking!

    Monday, January 30, 2012 at 13:59 | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*