Skip to content

Commit

Permalink
More fixes for old IM
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 5, 2019
1 parent 134d6e1 commit b291d2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ XPtrImage magick_image_annotate( XPtrImage input, Rcpp::CharacterVector text, co
draw.push_back(Magick::DrawableFillColor(Color(color[0])));
if(boxcolor.size())
draw.push_back(Magick::DrawableTextUnderColor(Color(boxcolor[0])));
#if MagickLibVersion >= 0x689
if(kerning != 0)
draw.push_back(Magick::DrawableTextKerning(kerning));
#endif
if(decoration.size())
draw.push_back(Magick::DrawableTextDecoration(FontDecoration(decoration[0])));
draw.push_back(Magick::DrawablePointSize(size));
Expand Down

0 comments on commit b291d2e

Please sign in to comment.