Show
Ignore:
Timestamp:
09/07/09 14:45:48 (6 months ago)
Author:
cristy
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/magick/annotate.c

    r1 r3  
    165165    **textlist; 
    166166 
     167  double 
     168    height; 
     169 
    167170  DrawInfo 
    168171    *annotate, 
     
    191194 
    192195  unsigned long 
    193     height, 
    194196    number_lines; 
    195197 
     
    234236    (void) CloneString(&annotate->text,textlist[i]); 
    235237    (void) GetTypeMetrics(image,annotate,&metrics); 
    236     height=(unsigned long) (metrics.ascent-metrics.descent+0.5); 
     238    height=metrics.height; 
     239    if (draw_info->interline_spacing != 0.0) 
     240      height+=draw_info->interline_spacing; 
    237241    switch (annotate->gravity) 
    238242    { 
     
    394398        undercolor_info->affine.ty=offset.y-draw_info->affine.sy*metrics.ascent; 
    395399        (void) FormatMagickString(primitive,MaxTextExtent, 
    396           "rectangle 0,0 %g,%ld",metrics.origin.x,height); 
     400          "rectangle 0,0 %g,%g",metrics.origin.x,height); 
    397401        (void) CloneString(&undercolor_info->primitive,primitive); 
    398402        (void) DrawImage(image,undercolor_info);