Skip to content

Commit

Permalink
Layer_Freetype: ignore negative sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
genete committed Aug 31, 2012
1 parent 1346404 commit 20fef2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synfig-core/src/modules/lyr_freetype/lyr_freetype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 20fef2f

Please sign in to comment.