diff --git a/src/drawconstraint.cpp b/src/drawconstraint.cpp index 49e179bd..e5f4cf1e 100644 --- a/src/drawconstraint.cpp +++ b/src/drawconstraint.cpp @@ -113,7 +113,7 @@ int Constraint::DoLineTrimmedAgainstBox(Canvas *canvas, Canvas::hStroke hcs, const Camera &camera = canvas->GetCamera(); double th = Style::TextHeight(GetStyle()) / camera.scale; double pixels = 1.0 / camera.scale; - double swidth = VectorFont::Builtin()->GetWidth(th, Label()) + 4 * pixels, + double swidth = VectorFont::Builtin()->GetWidth(th, Label()) + 8 * pixels, sheight = VectorFont::Builtin()->GetCapHeight(th) + 8 * pixels; Vector gu = camera.projUp.WithMagnitude(1), gr = camera.projRight.WithMagnitude(1); diff --git a/test/constraint/proj_pt_distance/normal.png b/test/constraint/proj_pt_distance/normal.png index e66bef12..d57c16a1 100644 Binary files a/test/constraint/proj_pt_distance/normal.png and b/test/constraint/proj_pt_distance/normal.png differ diff --git a/test/constraint/pt_face_distance/normal.png b/test/constraint/pt_face_distance/normal.png index 7173202f..9e827ed3 100644 Binary files a/test/constraint/pt_face_distance/normal.png and b/test/constraint/pt_face_distance/normal.png differ diff --git a/test/constraint/pt_face_distance/reference.png b/test/constraint/pt_face_distance/reference.png index 4b813f84..69c7a05d 100644 Binary files a/test/constraint/pt_face_distance/reference.png and b/test/constraint/pt_face_distance/reference.png differ diff --git a/test/constraint/pt_pt_distance/free_in_3d.png b/test/constraint/pt_pt_distance/free_in_3d.png index 0980a3aa..8d890159 100644 Binary files a/test/constraint/pt_pt_distance/free_in_3d.png and b/test/constraint/pt_pt_distance/free_in_3d.png differ diff --git a/test/constraint/pt_pt_distance/normal.png b/test/constraint/pt_pt_distance/normal.png index 3f6f8837..b6524ace 100644 Binary files a/test/constraint/pt_pt_distance/normal.png and b/test/constraint/pt_pt_distance/normal.png differ diff --git a/test/constraint/pt_pt_distance/reference.png b/test/constraint/pt_pt_distance/reference.png index 75611b42..b545f08b 100644 Binary files a/test/constraint/pt_pt_distance/reference.png and b/test/constraint/pt_pt_distance/reference.png differ