Changeset 540 for trunk/thune/gl/TexFont.c
- Timestamp:
- 07/04/08 03:46:13 (5 months ago)
- Files:
-
- 1 modified
-
trunk/thune/gl/TexFont.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/gl/TexFont.c
r533 r540 132 132 it = (uint16_t*) KERN(tf); 133 133 swap16( it, it + tf->kern_size ); 134 } 135 } 136 137 138 /** 139 Change the texture position of all glyphs. 140 */ 141 void txf_moveGlyphs( TexFont* tf, int dx, int dy ) 142 { 143 TexFontGlyph* tgi = GLYPHS(tf); 144 TexFontGlyph* end = tgi + tf->glyph_count; 145 while( tgi != end ) 146 { 147 tgi->x += dx; 148 tgi->y += dy; 149 ++tgi; 134 150 } 135 151 } … … 352 368 // Most glyphs have no kerning adjustment, and those with it have only 353 369 // a handful (at least at small font sizes). 354 kern_space = count * 5; // 5 = 2glyphs + terminator370 kern_space = count * 7; // 7 = 3 glyphs + terminator 355 371 356 372 txf = (TexFont*) malloc( sizeof(TexFont) + … … 437 453 tgi->advance = FT_PIXELS(glyph->metrics.horiAdvance); 438 454 tgi->x = x /*+ tgi->xoffset*/; 455 #if 0 439 456 tgi->y = img->height - y + tgi->yoffset; 457 #else 458 tgi->y = y - tgi->yoffset; 459 #endif 440 460 441 461 #ifdef DUMP
