comparison libass/ass_render.c @ 23299:0ee56ec36a40

Limit ass_font_set_transform to nonrotating transformations. Rotations are not needed here (they are performed in transform3d) and they disable autohinter.
author eugeni
date Mon, 14 May 2007 20:24:53 +0000
parents 5ea241439d5a
children 04dbd42b3962
comparison
equal deleted inserted replaced
23298:4726edea2edd 23299:0ee56ec36a40
1757 } 1757 }
1758 1758
1759 shift.x = pen.x & 63; 1759 shift.x = pen.x & 63;
1760 shift.y = pen.y & 63; 1760 shift.y = pen.y & 63;
1761 1761
1762 { 1762 ass_font_set_transform(render_context.font,
1763 FT_Matrix matrix; 1763 render_context.scale_x * frame_context.font_scale_x,
1764 matrix.xx = (FT_Fixed)( render_context.scale_x * frame_context.font_scale_x * 0x10000L ); 1764 render_context.scale_y,
1765 matrix.xy = (FT_Fixed)( 0 * 0x10000L ); 1765 &shift );
1766 matrix.yx = (FT_Fixed)( 0 * 0x10000L );
1767 matrix.yy = (FT_Fixed)( render_context.scale_y * 0x10000L );
1768
1769 ass_font_set_transform(render_context.font, &matrix, &shift );
1770 }
1771 1766
1772 get_outline_glyph(code, text_info.glyphs + text_info.length, &shift); 1767 get_outline_glyph(code, text_info.glyphs + text_info.length, &shift);
1773 1768
1774 text_info.glyphs[text_info.length].pos.x = pen.x >> 6; 1769 text_info.glyphs[text_info.length].pos.x = pen.x >> 6;
1775 text_info.glyphs[text_info.length].pos.y = pen.y >> 6; 1770 text_info.glyphs[text_info.length].pos.y = pen.y >> 6;