From 9ed74cb4cb17e91ed7ee13bfa714f8d25859418e Mon Sep 17 00:00:00 2001 From: buliabyak Date: Fri, 18 Jul 2008 16:34:04 +0000 Subject: [PATCH] patch for bug 249665 --- src/livarot/Path.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/livarot/Path.cpp b/src/livarot/Path.cpp index 726b0001c..bc62e817e 100644 --- a/src/livarot/Path.cpp +++ b/src/livarot/Path.cpp @@ -813,6 +813,14 @@ void Path::FastBBox(double &l,double &t,double &r,double &b) } } +/* bug 249665: "...the calculation of the bounding-box for cubic-paths +has some extra steps to make it work corretly in Win32 that unfortunately +are unnecessary in Linux, generating wrong results. This only shows in +Type1 fonts because they use cubic-paths instead of the +bezier-paths used by True-Type fonts." +*/ + +#ifdef WIN32 NR::Point np = nData->p - nData->end; if ( np[NR::X] < l ) { l = np[NR::X]; @@ -840,6 +848,8 @@ void Path::FastBBox(double &l,double &t,double &r,double &b) if ( np[NR::Y] > b ) { b = np[NR::Y]; } +#endif + lastP = nData->p; } break; -- 2.30.2