forked from mirror/OpenTTD
(svn r23009) -Change: Improve appearance of antialiased text with shadow.
This commit is contained in:
@@ -45,6 +45,7 @@ void InitFreeType();
|
||||
void UninitFreeType();
|
||||
const Sprite *GetGlyph(FontSize size, uint32 key);
|
||||
uint GetGlyphWidth(FontSize size, uint32 key);
|
||||
bool GetDrawGlyphShadow();
|
||||
|
||||
typedef bool (SetFallbackFontCallback)(const char **);
|
||||
/**
|
||||
@@ -82,6 +83,11 @@ static inline uint GetGlyphWidth(FontSize size, uint32 key)
|
||||
return SpriteExists(sprite) ? GetSprite(sprite, ST_FONT)->width + (size != FS_NORMAL) : 0;
|
||||
}
|
||||
|
||||
static inline bool GetDrawGlyphShadow()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif /* WITH_FREETYPE */
|
||||
|
||||
#endif /* FONTCACHE_H */
|
||||
|
Reference in New Issue
Block a user