- current_w = current_x + freetype_face->glyph->bitmap.width;
- if( (int)freetype_face->glyph->bitmap_top > current_ascent )
- current_ascent = freetype_face->glyph->bitmap_top;
- if( (int)freetype_face->glyph->bitmap.rows > total_h )
- total_h = freetype_face->glyph->bitmap.rows;
- if( (int)freetype_face->glyph->bitmap.rows > current_h )
- current_h = freetype_face->glyph->bitmap.rows;
+ current_w = current_x + glyph_w;
+ if( current_w > max_width ) current_w = max_width;
+ if( total_w < current_w ) total_w = current_w;
+ if( current_ascent < glyph_t ) current_ascent = glyph_t;
+ if( current_h < glyph_h ) current_h = glyph_h;
+ if( total_h < glyph_h ) total_h = glyph_h;