From 16898b3a2d842ad3fa586f5f452e8e7c0b75eca1 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Fri, 18 Jul 2008 16:34:04 +0000 Subject: patch for bug 249665 (bzr r6353) --- src/livarot/Path.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/livarot/Path.cpp') 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; -- cgit v1.2.3