Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- fix a few compiler warnings

- document the Imager::Font::BBox advance_width() method
  • Loading branch information...
commit 358918925b41a7084b2f21922fe9aaab5da5b49e 1 parent 109bec2
authored
2  Changes
@@ -1057,6 +1057,8 @@ Revision history for Perl extension Imager.
1057 1057
 - the segments parameter supplied to the fountain filter and the
1058 1058
   fountain fill contructor now accepts color names or other 
1059 1059
   descriptions as other functions do.
  1060
+- fix a few compiler warnings
  1061
+- document the Imager::Font::BBox advance_width() method
1060 1062
 
1061 1063
 =================================================================
1062 1064
 
3  TODO
@@ -14,6 +14,9 @@ not commitments.
14 14
 - implement i_incomplete for bmp files
15 15
 - check if freetype 2 is faster/slower than freetype 1 with Imager's glyph
16 16
   caching.  If FT1 is faster, add caching as a TODO for FT2.
  17
+- add XS for i_tags_get_string() and test it.
  18
+- test and fix problem with fallback value for 
  19
+  Imager::Font::BBox->advance_width.
17 20
 - add sample CGI that handles an uploaded image (done)
18 21
 - examples for fountain filter in Imager::Filters
19 22
 - allow Imager::Fountain to take color descriptions (eg. blue, FF000)
2  datatypes.c
@@ -2,7 +2,7 @@
2 2
 #include "datatypes.h"
3 3
 #include <stdlib.h>
4 4
 #include <stdio.h>
5  
-
  5
+#include <string.h>
6 6
 
7 7
 
8 8
 /*
3  freetyp2.c
@@ -766,6 +766,7 @@ Returns non-zero on success.
766 766
 =cut
767 767
 */
768 768
 
  769
+int
769 770
 i_ft2_cp(FT2_Fonthandle *handle, i_img *im, int tx, int ty, int channel,
770 771
          double cheight, double cwidth, char const *text, int len, int align,
771 772
          int aa, int vlayout, int utf8) {
@@ -1004,7 +1005,7 @@ i_ft2_glyph_name(FT2_Fonthandle *handle, unsigned long ch, char *name_buf,
1004 1005
     if (error) {
1005 1006
       ft2_push_message(error);
1006 1007
       *name_buf = '\0';
1007  
-      return;
  1008
+      return 0;
1008 1009
     }
1009 1010
     if (*name_buf) {
1010 1011
       return strlen(name_buf) + 1;
1  iolayer.c
@@ -6,6 +6,7 @@
6 6
 #ifdef _MSC_VER
7 7
 #include <io.h>
8 8
 #endif
  9
+#include <string.h>
9 10
 
10 11
 #define IOL_DEB(x)
11 12
 
3  lib/Imager/Font/BBox.pm
@@ -123,6 +123,9 @@ sub ascent {
123 123
 
124 124
 =item advance_width()
125 125
 
  126
+The advance width of the string, if the driver supports that,
  127
+otherwise the same as end_offset.
  128
+
126 129
 =cut
127 130
 
128 131
 sub advance_width {
1  log.c
... ...
@@ -1,5 +1,6 @@
1 1
 #include "imconfig.h"
2 2
 #include "log.h"
  3
+#include <stdlib.h>
3 4
 
4 5
 #define DTBUFF 50
5 6
 #define DATABUFF DTBUFF+3+10+1+5+1+1
2  rotate.c
@@ -419,7 +419,7 @@ i_img *i_matrix_transform(i_img *src, int xsize, int ysize, double *matrix) {
419 419
   return i_matrix_transform_bg(src, xsize, ysize, matrix, NULL, NULL);
420 420
 }
421 421
 
422  
-
  422
+static void
423 423
 i_matrix_mult(double *dest, double *left, double *right) {
424 424
   int i, j, k;
425 425
   double accum;

0 notes on commit 3589189

Please sign in to comment.
Something went wrong with that request. Please try again.