It looks like you're new here. If you want to get involved, click one of these buttons!

- 2.9K All Categories
- 4 Introductions
- 2.3K Typeface Design
- 349 Font Technology
- 782 Technique and Theory
- 305 Type Business
- 295 Type Design Critiques
- 406 Type Design Software
- 27 Punchcutting
- 59 Lettering and Calligraphy
- 37 Technique and Theory
- 22 Lettering Critiques
- 224 Typography
- 156 History of Typography
- 68 Education
- 346 Announcements
- 59 Events
- 67 Job Postings
- 103 Type Releases
- 116 Miscellaneous News
- 175 About TypeDrawers
- 41 TypeDrawers Announcements
- 76 Suggestions and Bug Reports

rui_abreu
Posts: **20**

Hi Everyone. My first time posting here. Glad to join you guys.

The rounding of point coordinates on FontLab as always puzzled me, and that becomes an issue on big families, since I can't obviously trust the coordinate roundings.

Of course, when merging contours, the resulting intersection points have to fall in a certain pair of coordinates. What puzzles me is how FontLab does this. In the picture below you can see a case where the intersection point was dislocated almost one unit to the side. And it happened to be on an almost exact coordinate already. Why did FontLab choose to round the x coordinate like that. Why didn't it just stay where it should.

Doe anyone know if there is more reliable way to merge the Contours? Is Glyphs better at this?

The rounding of point coordinates on FontLab as always puzzled me, and that becomes an issue on big families, since I can't obviously trust the coordinate roundings.

Of course, when merging contours, the resulting intersection points have to fall in a certain pair of coordinates. What puzzles me is how FontLab does this. In the picture below you can see a case where the intersection point was dislocated almost one unit to the side. And it happened to be on an almost exact coordinate already. Why did FontLab choose to round the x coordinate like that. Why didn't it just stay where it should.

Doe anyone know if there is more reliable way to merge the Contours? Is Glyphs better at this?

1

## Comments

2036234Scaling up and down in FontLab might, in itself, produce rounding errors. When scaling down, the rounding errors will be minimal when scaling down to one third. So, if the UPM is 1000, scale the UPM up to 3000 to do contour operations, and scale the UPM down to 1000 when done.

205782020739I'm not positive of that. Looking at the background image closely, it looks like the long diagonal that's intersecting, is not on the same line as the diagonal in the foreground. If that's the case then I think the overlap removal is correct to indicate a need for the designer to check the results.

In addition, the place you seem to want to locate the continuation of the diagonal, without any optical correction, might make it appear too dark in all but the larger uses, IMHO.

201. merged on Fontlab:

http://www.flickr.com/photos/abreurf/8680271441/

2. merged on AFDK:

http://www.flickr.com/photos/abreurf/8681381324/

(I had to remove the images from my server)

8802036can't, not because there's a calculation error.The plane where the points may lie is discretized, i.e. every point

mustlie on the grid. Therefore, if your UPM size is small, then the grid is coarse, hence there are less coordinates at which the points may be placed. If you draw a diagonal across a 1pt-by-1pt-square and then try to place a new point on the diagonal you will soon discover it will always snap to the nearest grid vertice. The same phenomenon happens when intersecting contours.5392020201. merged on Fontlab:

http://www.flickr.com/photos/abreurf/8680271441/

2. merged on AFDK:

http://www.flickr.com/photos/abreurf/8681381324/

(see line intersections)

739Yes, I know. An issue I see from your first illustration, is that the tangent point where the serif begins above the overlap removal is exactly on the mask. The next point, added in the overlap removal, is not on the mask exactly, being very slightly x negative relative to the mask.

This is the same in both AFDK and FL. Then, AFDK puts the next point, added in the overlap removal exactly on the mask, FL does not. Why? who knows. How, is another question.

Neither of them are "right", IMHO, which FL "tells" you, and AFDK does not.

20That's right David. That "How" is what I was wondering. Because to me, in both cases the points added should be in the same position if the x position of the new point is simply rounded. But I guess that depends on how they both handle the math behind the lines. But overall AFDK adds these intersection points in a more predictable way.