Mercurial > mplayer.hg
comparison libass/ass_font.c @ 21616:2704273f398d
FT_Set_Transform is fast enough to be called once for each glyph.
author | eugeni |
---|---|
date | Sat, 16 Dec 2006 19:24:01 +0000 |
parents | 62989854d340 |
children | 8111d4625194 |
comparison
equal
deleted
inserted
replaced
21615:62989854d340 | 21616:2704273f398d |
---|---|
117 return font; | 117 return font; |
118 } | 118 } |
119 | 119 |
120 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v) | 120 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v) |
121 { | 121 { |
122 if (font->m.xx != m->xx || | 122 font->m.xx = m->xx; |
123 font->m.xy != m->xy || | 123 font->m.xy = m->xy; |
124 font->m.yx != m->yx || | 124 font->m.yx = m->yx; |
125 font->m.yy != m->yy || | 125 font->m.yy = m->yy; |
126 font->v.x != v->x || | 126 font->v.x = v->x; |
127 font->v.y != v->y | 127 font->v.y = v->y; |
128 ) { | 128 FT_Set_Transform(font->face, &font->m, &font->v); |
129 font->m.xx = m->xx; | |
130 font->m.xy = m->xy; | |
131 font->m.yx = m->yx; | |
132 font->m.yy = m->yy; | |
133 font->v.x = v->x; | |
134 font->v.y = v->y; | |
135 FT_Set_Transform(font->face, &font->m, &font->v); | |
136 } | |
137 } | 129 } |
138 | 130 |
139 void ass_font_set_size(ass_font_t* font, int size) | 131 void ass_font_set_size(ass_font_t* font, int size) |
140 { | 132 { |
141 if (font->size != size) { | 133 if (font->size != size) { |