Changeset 121 for trunk/src/gfx/texture_font.cc
- Timestamp:
- 06/15/13 17:47:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gfx/texture_font.cc
r114 r121 17 17 } 18 18 19 float texture_glyph::get_kerning( const uint16 charcode)19 float texture_glyph::get_kerning( const uint16 other ) 20 20 { 21 auto i = kerning.find( charcode);21 auto i = kerning.find( other ); 22 22 return i != kerning.end() ? i->second : 0.0f; 23 23 } … … 118 118 } 119 119 120 for ( char c : codes )120 for ( char ch : codes ) 121 121 { 122 uint16 c = static_cast<uint16>( ch ); 122 123 FT_UInt glyph_index = FT_Get_Char_Index( face, c ); 123 124 FT_Error error = FT_Load_Glyph( face, glyph_index, flags ); … … 136 137 int ft_glyph_top = slot->bitmap_top; 137 138 int ft_glyph_left = slot->bitmap_left; 138 int reg_width = ft_bitmap_width / (depth > 3 ? 3 : depth);139 int reg_width = ft_bitmap_width / (depth > 3 ? 3 : (int)depth); 139 140 140 141 glm::ivec2 gsize( reg_width + 1, ft_bitmap_rows + 1 );
Note: See TracChangeset
for help on using the changeset viewer.