Permalink
Browse files

- fix a few compiler warnings

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

0 comments on commit 3589189

Please sign in to comment.