freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] ftdiff vs -r option


From: James Cloos
Subject: Re: [ft-devel] ftdiff vs -r option
Date: Mon, 02 Apr 2007 15:44:43 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux)

Indeed, changing ftdiff.c like such:

--- a/ft2demos/src/ftdiff.c     2007-04-02 13:44:11.000000000 +0000
+++ b/ft2demos/src/ftdiff.c     2007-04-02 19:21:58.000000000 +0000
@@ -259,7 +259,7 @@
     if ( state->need_rescale && state->size )
     {
       FT_Set_Char_Size( state->face, 0, state->char_size * 64,
-                        0, state->resolution );
+                        state->resolution, state->resolution );
       state->need_rescale = 0;
     }
   }


does make it work correctly.

But I'm still not certain that it isn't better to instead change
FT_Set_Char_Size() in freetype2/src/base/ftobjs.c to do the same
thing to horz_resolution and vert_resolution that it now does to
char_width and char_height.  (And which is why the first 0 above
in the call to FT_Set_Char_Size() does not have to be changed.)

The significant corruption in the initial display, which would be
fixed by changing the point size with UP or DOWN does not show up
after applying the above patch.  There is probably still a bug in
ftdiff.c or in the library, but I don't see it and fixing the res
bug hides it.

-JimC
-- 
James Cloos <address@hidden>         OpenPGP: 1024D/ED7DAEA6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]