src/fontcache.cpp
changeset 6574 e1d1a12faaf7
parent 6573 7624f942237f
child 6719 4cc327ad39d5
child 6884 a1b3e90eb3ac
equal deleted inserted replaced
6573:7624f942237f 6574:e1d1a12faaf7
   313 		case FS_LARGE:  return _face_large;
   313 		case FS_LARGE:  return _face_large;
   314 	}
   314 	}
   315 }
   315 }
   316 
   316 
   317 
   317 
   318 typedef struct GlyphEntry {
   318 struct GlyphEntry {
   319 	Sprite *sprite;
   319 	Sprite *sprite;
   320 	byte width;
   320 	byte width;
   321 } GlyphEntry;
   321 };
   322 
   322 
   323 
   323 
   324 /* The glyph cache. This is structured to reduce memory consumption.
   324 /* The glyph cache. This is structured to reduce memory consumption.
   325  * 1) There is a 'segment' table for each font size.
   325  * 1) There is a 'segment' table for each font size.
   326  * 2) Each segment table is a discrete block of characters.
   326  * 2) Each segment table is a discrete block of characters.