Hello community,

here is the log from the commit of package freetype2 for openSUSE:Factory 
checked in at 2012-06-25 13:54:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/freetype2 (Old)
 and      /work/SRC/openSUSE:Factory/.freetype2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "freetype2", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/freetype2/freetype2.changes      2012-05-10 
14:31:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.freetype2.new/freetype2.changes 2012-06-25 
14:04:26.000000000 +0200
@@ -1,0 +2,11 @@
+Sun Jun 17 10:34:24 UTC 2012 - [email protected]
+
+- Update to version 2.4.10
+  * Incremental glyph loading as needed by ghostscript was broken.
+  * A new  function `FT_Outline_EmboldenXY'
+  * The glyph  spacing computation  in `FT_GlyphSlot_Embolden'  (and
+    similar code in `ftview') has been improved.
+  * Minor  improvements to  the TrueType  bytecode  interpreter  and
+    glyph loader, the auto-hinter, and the B/W rasterizer.
+
+-------------------------------------------------------------------
--- /work/SRC/openSUSE:Factory/freetype2/ft2demos.changes       2012-03-09 
21:22:42.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.freetype2.new/ft2demos.changes  2012-06-25 
14:04:26.000000000 +0200
@@ -1,0 +2,8 @@
+Sun Jun 17 10:35:24 UTC 2012 - [email protected]
+
+- Update to version 2.4.10
+  * In the `ftview' demo program, key `e' has been replaced with `x'
+    and `y' to  embolden in  the horizontal and  vertical direction,
+    respectively.
+
+-------------------------------------------------------------------

Old:
----
  freetype-2.4.9.tar.bz2
  freetype-doc-2.4.9.tar.bz2
  ft2demos-2.4.9.tar.bz2

New:
----
  freetype-2.4.10.tar.bz2
  freetype-doc-2.4.10.tar.bz2
  ft2demos-2.4.10.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ freetype2.spec ++++++
--- /var/tmp/diff_new_pack.LZQ7uE/_old  2012-06-25 14:04:28.000000000 +0200
+++ /var/tmp/diff_new_pack.LZQ7uE/_new  2012-06-25 14:04:28.000000000 +0200
@@ -17,6 +17,7 @@
 
 
 Name:           freetype2
+BuildRequires:  gawk
 BuildRequires:  pkg-config
 BuildRequires:  zlib-devel
 # bug437293
@@ -24,7 +25,7 @@
 Obsoletes:      freetype2-64bit
 %endif
 #
-Version:        2.4.9
+Version:        2.4.10
 Release:        0
 Summary:        A TrueType Font Library
 License:        SUSE-Freetype or GPL-2.0+

++++++ ft2demos.spec ++++++
--- /var/tmp/diff_new_pack.LZQ7uE/_old  2012-06-25 14:04:28.000000000 +0200
+++ /var/tmp/diff_new_pack.LZQ7uE/_new  2012-06-25 14:04:28.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           ft2demos
-Version:        2.4.9
+Version:        2.4.10
 Release:        0
 Summary:        Freetype2 Utilities and Demo Programs
 License:        GPL-2.0+
@@ -44,7 +44,7 @@
 
 %prep
 %define enable_subpixel_rendering 0%{?opensuse_bs}
-%setup -n freetype-%{freetype_version} -b 1
+%setup -q -n freetype-%{freetype_version} -b 1
 %patch9 -p 1
 %patch308961 -p 1
 pushd ../ft2demos-%{version}






++++++ freetype-2.4.9.tar.bz2 -> freetype-2.4.10.tar.bz2 ++++++
++++ 6137 lines of diff (skipped)

++++++ freetype-doc-2.4.9.tar.bz2 -> freetype-doc-2.4.10.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/freetype-2.4.9/docs/tutorial/step2.html 
new/freetype-2.4.10/docs/tutorial/step2.html
--- old/freetype-2.4.9/docs/tutorial/step2.html 2009-11-19 17:15:27.000000000 
+0100
+++ new/freetype-2.4.10/docs/tutorial/step2.html        2012-05-06 
11:11:10.000000000 +0200
@@ -1314,7 +1314,8 @@
       FT_BBox  glyph_bbox;
 
 
-      FT_Glyph_Get_CBox( glyphs[n], &glyph_bbox );
+      FT_Glyph_Get_CBox( glyphs[n], ft_glyph_bbox_pixels,
+                         &glyph_bbox );
 
       if (glyph_bbox.xMin < bbox.xMin)
         bbox.xMin = glyph_bbox.xMin;
@@ -1426,9 +1427,9 @@
       FT_BitmapGlyph  bit = (FT_BitmapGlyph)image;
 
 
-      my_draw_bitmap( bitmap->bitmap,
-                      bitmap->left,
-                      my_target_height - bitmap->top );
+      my_draw_bitmap( bit->bitmap,
+                      bit->left,
+                      my_target_height - bit->top );
 
       FT_Done_Glyph( image );
     }
@@ -1452,7 +1453,7 @@
         <li>
           <p>We always destroy the copy when calling
           <tt>FT_Glyph_To_Bitmap</tt> in order to get rid of the transformed
-          scalable image.  Note that the image is destroyed even when the
+          scalable image.  Note that the image is not destroyed if the
           function returns an error code (which is why
           <tt>FT_Done_Glyph</tt> is only called within the compound
           statement.</p>
@@ -1676,7 +1677,7 @@
   <a href="step3.html">FreeType&nbsp;2 Tutorial Step&nbsp;3</a>
 </h3>
 
-<p><font size=-3>Last update: 19-Nov-2009</font></p>
+<p><font size=-3>Last update: 06-May-2012</font></p>
 
 </body>
 </html>

++++++ ft2demos-2.4.9.tar.bz2 -> ft2demos-2.4.10.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ft2demos-2.4.9/ChangeLog 
new/ft2demos-2.4.10/ChangeLog
--- old/ft2demos-2.4.9/ChangeLog        2012-03-03 08:17:01.000000000 +0100
+++ new/ft2demos-2.4.10/ChangeLog       2012-06-15 06:48:45.000000000 +0200
@@ -1,3 +1,41 @@
+2012-06-15  Werner Lemberg  <[email protected]>
+
+       * Version 2.4.10 released.
+       ==========================
+
+
+       Tag sources with `VER-2-4-10'.
+
+       * README: Updated.
+
+2012-05-28  Alexei Podtelezhnikov  <[email protected]>
+
+       [ftview] Implement handling of FT_Outline_EmboldenXY.
+
+       * src/ftview.c (status): Replace `bold_factor' with `xbold_factor'
+       and `ybold_factor'.
+       (Render_Embolden): Updated.
+       (Process_Event): Replacing handling of `e', `E' keys with `x', `X',
+       `y', and `Y'.
+       (event_bold_change): Implement it.
+       (event_help): Updated.
+
+2012-03-14  Alexei Podtelezhnikov  <[email protected]>
+
+       [ftview] Improve spacing for bold rendering mode.
+
+       * src/ftview.c (Render_Embolden): Fix algorithm to reduce spacing.
+
+2012-03-08  Werner Lemberg  <[email protected]>
+
+       * Version 2.4.9 released.
+       =========================
+
+
+       Tag sources with `VER-2-4-9' (the previous commit has this tag).
+
+       * README: Updated.
+
 2012-03-03  Werner Lemberg  <[email protected]>
 
        [ftstring] Fix display of kern compare mode.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ft2demos-2.4.9/README new/ft2demos-2.4.10/README
--- old/ft2demos-2.4.9/README   2011-11-15 07:50:12.000000000 +0100
+++ new/ft2demos-2.4.10/README  2012-06-15 06:49:06.000000000 +0200
@@ -8,8 +8,8 @@
   downloaded one  of the  stable FreeType 2  source packages  from our
   server, you most probably have to rename its directory, for example:
 
-    mv freetype-2.4.8 freetype2       on Unix
-    rename freetype-2.4.8 freetype2   on Windows
+    mv freetype-2.4.10 freetype2       on Unix
+    rename freetype-2.4.10 freetype2   on Windows
 
 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ft2demos-2.4.9/src/ftview.c 
new/ft2demos-2.4.10/src/ftview.c
--- old/ft2demos-2.4.9/src/ftview.c     2012-03-02 16:19:00.000000000 +0100
+++ new/ft2demos-2.4.10/src/ftview.c    2012-05-28 22:42:15.000000000 +0200
@@ -75,7 +75,8 @@
     int            ptsize;            /* current point size, 26.6 format */
     int            lcd_mode;
     double         gamma;
-    double         bold_factor;
+    double         xbold_factor;
+    double         ybold_factor;
     double         slant;
 
     int            debug;
@@ -93,7 +94,7 @@
     int            fw_index;
 
   } status = { RENDER_MODE_ALL, FT_ENCODING_NONE, 72, 48, -1,
-               1.0, 0.04, 0.22,
+               1.0, 0.04, 0.04, 0.22,
                0, 0, 0, 0, 0, NULL, { 0 }, 0, 0,
                0, { 0x10, 0x40, 0x70, 0x40, 0x10 }, 2 };
 
@@ -344,18 +345,15 @@
              slot->format != FT_GLYPH_FORMAT_BITMAP )
           goto Next;
 
-        xstr = FT_MulFix( face->units_per_EM,
+        ystr = FT_MulFix( face->units_per_EM,
                           face->size->metrics.y_scale );
-        xstr = (FT_Fixed)( xstr * status.bold_factor );
-        ystr = xstr;
+        xstr = (FT_Fixed)( ystr * status.xbold_factor );
+        ystr = (FT_Fixed)( ystr * status.ybold_factor );
 
         if ( slot->format == FT_GLYPH_FORMAT_OUTLINE )
         {
-          error = FT_Outline_Embolden( &slot->outline, xstr );
+          error = FT_Outline_EmboldenXY( &slot->outline, xstr, ystr );
           /* ignore error */
-
-          xstr = xstr * 2;
-          ystr = xstr;
         }
         else if ( slot->format == FT_GLYPH_FORMAT_BITMAP )
         {
@@ -380,10 +378,7 @@
 
         slot->metrics.width        += xstr;
         slot->metrics.height       += ystr;
-        slot->metrics.horiBearingY += ystr;
         slot->metrics.horiAdvance  += xstr;
-        slot->metrics.vertBearingX -= xstr / 2;
-        slot->metrics.vertBearingY += ystr;
         slot->metrics.vertAdvance  += ystr;
 
         if ( slot->format == FT_GLYPH_FORMAT_BITMAP )
@@ -662,7 +657,8 @@
     grWriteln( "  space       cycle forwards through rendering modes" );
     grWriteln( "  1-6         select rendering mode" );
     grLn();
-    grWriteln( "  e, E        adjust emboldening" );
+    grWriteln( "  x, X        adjust horizontal emboldening" );
+    grWriteln( "  y, Y        adjust vertical emboldening" );
     grWriteln( "  s, S        adjust slanting" );
     grLn();
     grWriteln( "  F           toggle custom LCD filter mode" );
@@ -777,17 +773,24 @@
 
 
   static void
-  event_bold_change( double  delta )
+  event_bold_change( double  xdelta,
+                     double  ydelta )
   {
-    status.bold_factor += delta;
+    status.xbold_factor += xdelta;
+    status.ybold_factor += ydelta;
 
-    if ( status.bold_factor > 0.1 )
-      status.bold_factor = 0.1;
-    else if ( status.bold_factor < -0.1 )
-      status.bold_factor = -0.1;
+    if ( status.xbold_factor > 0.1 )
+      status.xbold_factor = 0.1;
+    else if ( status.xbold_factor < -0.1 )
+      status.xbold_factor = -0.1;
+
+    if ( status.ybold_factor > 0.1 )
+      status.ybold_factor = 0.1;
+    else if ( status.ybold_factor < -0.1 )
+      status.ybold_factor = -0.1;
 
-    sprintf( status.header_buffer, "embolding factor changed to %.3f",
-             status.bold_factor );
+    sprintf( status.header_buffer, "embolding factors changed to %.3f,%.3f",
+             status.xbold_factor, status.ybold_factor );
 
     status.header = status.header_buffer;
   }
@@ -1031,12 +1034,20 @@
       event_slant_change( -0.02 );
       break;
 
-    case grKEY( 'e' ):
-      event_bold_change( 0.002 );
+    case grKEY( 'x' ):
+      event_bold_change( 0.005, 0.0 );
+      break;
+
+    case grKEY( 'X' ):
+      event_bold_change( -0.005, 0.0 );
+      break;
+
+    case grKEY( 'y' ):
+      event_bold_change( 0.0, 0.005 );
       break;
 
-    case grKEY( 'E' ):
-      event_bold_change( -0.002 );
+    case grKEY( 'Y' ):
+      event_bold_change( 0.0, -0.005 );
       break;
 
     case grKEY( 'g' ):

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to