|
From: JustFillBug <moz...@ya...> - 2008-12-07 00:57:11
|
On 2008-12-06, JustFillBug <moz...@ya...> wrote:
>
> I tried Find/Replace and I use a smaller splineline for both the Search
> and Replace patterns, turns on scale. After Replace All, bigger
> splinelines are changed to even smaller splinelines.
>
With this patch, the replaced spineline will have proper size as before
the replacement.
There are other calculations use matched_scale but I don't know what
they are doing, so leave them alone.
Index: fontforge/search.c
===================================================================
RCS file: /cvsroot/fontforge/fontforge/fontforge/search.c,v
retrieving revision 1.53
diff -u -r1.53 search.c
--- fontforge/search.c 24 Aug 2008 02:40:17 -0000 1.53
+++ fontforge/search.c 7 Dec 2008 00:54:00 -0000
@@ -530,8 +530,8 @@
transform[0] = -1;
if ( s->matched_flip&2 )
transform[3] = -1;
- transform[0] *= s->matched_scale;
- transform[3] *= s->matched_scale;
+ transform[0] /= s->matched_scale;
+ transform[3] /= s->matched_scale;
transform[1] = -transform[0]*s->matched_si;
transform[0] *= s->matched_co;
transform[2] = transform[3]*s->matched_si;
|