diff --git a/ChangeLog b/ChangeLog index 866ab4d1..e82d7432 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,9 @@ - implement shrink-on-load for tiff pyramids [jcupitt] - added vips_image_set_blob_copy() [jcupitt] +21/11/18 started 8.7.3 +- fix infinite loop for autofit with non-scaleable font + 21/11/18 started 8.7.2 - more info output for temp files to help diagnose problems - vips_text() could set the wrong DPI diff --git a/configure.ac b/configure.ac index b5c77226..bb1359fc 100644 --- a/configure.ac +++ b/configure.ac @@ -37,9 +37,9 @@ VIPS_VERSION_STRING=$VIPS_VERSION-`date -u -r ChangeLog` # binary interface changes backwards compatible?: increment age # binary interface changes not backwards compatible?: reset age to 0 -LIBRARY_CURRENT=51 -LIBRARY_REVISION=1 -LIBRARY_AGE=9 +LIBRARY_CURRENT=52 +LIBRARY_REVISION=0 +LIBRARY_AGE=10 # patched into include/vips/version.h AC_SUBST(VIPS_VERSION) diff --git a/libvips/create/text.c b/libvips/create/text.c index a6a4810a..7e532b54 100644 --- a/libvips/create/text.c +++ b/libvips/create/text.c @@ -265,6 +265,12 @@ vips_text_autofit( VipsText *text ) previous_dpi = text->dpi; text->dpi = difference < 0 ? text->dpi * 2 : text->dpi / 2; + + /* This can happen with fixed-size fonts. + */ + if( text->dpi < 2 || + text->dpi > 10000 ) + break; } if( difference < 0 ) {