Author: Carlos Lopez <genet...@gmail.com> Date: Sat Sep 1 00:04:53 2012 +0200
Layer_Freetype: ignore negative sizes --- .../src/modules/lyr_freetype/lyr_freetype.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-core/src/modules/lyr_freetype/lyr_freetype.cpp b/synfig-core/src/modules/lyr_freetype/lyr_freetype.cpp index a9652d4..94c45ab 100644 --- a/synfig-core/src/modules/lyr_freetype/lyr_freetype.cpp +++ b/synfig-core/src/modules/lyr_freetype/lyr_freetype.cpp @@ -956,8 +956,8 @@ Layer_Freetype::accelerated_cairorender(Context context,cairo_surface_t *surface pango_font_description_set_weight (font_description, PangoWeight(weight)); pango_font_description_set_style (font_description, PangoStyle(style)); // The size is scaled to match Software render size (remove the scale?) - float sizex=1.75*size[0]*sx; - float sizey=1.75*size[1]*fabs(sy); + float sizex=1.75*fabs(size[0])*fabs(sx); + float sizey=1.75*fabs(size[1])*fabs(sy); float vscale=sizey/sizex; pango_font_description_set_absolute_size (font_description, sizex * PANGO_SCALE ); ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl