Circles do not exist

However almost every “circle” you can see in printed media (and most purely digital ones) are not, in fact, circles. Why is this?

Since roughly the mid 80s all “high quality” print jobs have been done either in PostScript or, nowadays almost exclusively, in PDF. They use the same basic drawing model, which does not have a primitive for circles (or circle arcs). The only primitives they have are straight line segments, rectangles and Bézier curves. None of these can be used to express a circle accurately. You can only do an approximation of a circle but it is always slightly eccentric. The only way to create a proper circle is to have a raster image like the one above.

Shouldn’t be that big of a deal, right? I’m sure nobody is using PDF for anything that would require the kind of precision needed for a perfect circle, like CAD drawings for laser cutters and similar machinery. Right?

Again one might ask whether this has any practical impact. For this case, again, probably not. But did you know that one of the cases PDF is being considered (and, based on Internet rumors, is already being used) is as an interchange format for CAD drawings? Now it suddenly starts mattering. If you have any component where getting a really accurate circle shape is vital (like pistons and their holes), suddenly all your components are slightly misshaped. Which would not be fun.

This is why we can’t have nice things.

12 Comments

  1. 2023-09-19 7:28 pm
    • 2023-09-21 11:01 am
  2. 2023-09-19 8:23 pm
  3. 2023-09-19 8:37 pm
  4. 2023-09-20 12:21 am
  5. 2023-09-20 1:47 am
    • 2023-09-20 12:35 pm
  6. 2023-09-20 2:25 am
  7. 2023-09-20 7:15 am
  8. 2023-09-20 11:19 am
  9. 2023-09-20 11:58 am
    • 2023-09-20 8:47 pm