if ((align != PANGO_ALIGN_CENTER) &&
(draw_info->direction == RightToLeftDirection))
align=(PangoAlignment) (PANGO_ALIGN_LEFT+PANGO_ALIGN_RIGHT-align);
+ option=GetImageOption(image_info,"pango:align");
+ if (option != (const char *) NULL)
+ {
+ if (LocaleCompare(option,"center") == 0)
+ align=PANGO_ALIGN_CENTER;
+ if (LocaleCompare(option,"left") == 0)
+ align=PANGO_ALIGN_LEFT;
+ if (LocaleCompare(option,"right") == 0)
+ align=PANGO_ALIGN_RIGHT;
+ }
pango_layout_set_alignment(layout,align);
if (draw_info->font == (char *) NULL)
description=pango_font_description_new();