(svn r12346) -Fix [FS#1748, FS#1825](r9874, r11872): Remove duplicated and inconsistent code wrt. autoreplace with rules in both vehicles' group and ALL_GROUP.
/* $Id$ */#ifndef FONTCACHE_H#define FONTCACHE_H#include"gfx_type.h"/** Get the SpriteID mapped to the given font size and key */SpriteIDGetUnicodeGlyph(FontSizesize,uint32key);/** Map a SpriteID to the font size and key */voidSetUnicodeGlyph(FontSizesize,uint32key,SpriteIDsprite);/** Initialize the glyph map */voidInitializeUnicodeGlyphMap();#ifdef WITH_FREETYPEstructFreeTypeSettings{charsmall_font[260];charmedium_font[260];charlarge_font[260];uintsmall_size;uintmedium_size;uintlarge_size;boolsmall_aa;boolmedium_aa;boollarge_aa;};externFreeTypeSettings_freetype;voidInitFreeType();conststructSprite*GetGlyph(FontSizesize,uint32key);uintGetGlyphWidth(FontSizesize,uint32key);#else/* Stub for initializiation */staticinlinevoidInitFreeType(){}/** Get the Sprite for a glyph */staticinlineconstSprite*GetGlyph(FontSizesize,uint32key){SpriteIDsprite=GetUnicodeGlyph(size,key);if(sprite==0)sprite=GetUnicodeGlyph(size,'?');returnGetSprite(sprite);}/** Get the width of a glyph */staticinlineuintGetGlyphWidth(FontSizesize,uint32key){SpriteIDsprite=GetUnicodeGlyph(size,key);if(sprite==0)sprite=GetUnicodeGlyph(size,'?');returnSpriteExists(sprite)?GetSprite(sprite)->width+(size!=FS_NORMAL):0;}#endif /* WITH_FREETYPE */#endif /* FONTCACHE_H */