Added a font manager (work in progress)

svn-id: r16460
This commit is contained in:
Max Horn 2005-01-06 21:15:52 +00:00
parent f3b7c27cbd
commit c6e0d31e76
11 changed files with 155 additions and 40 deletions

View file

@ -24,6 +24,7 @@
#include "common/scaler.h"
#include "common/util.h"
#include "graphics/font.h"
#include "graphics/fontman.h"
static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
{"1x", "Normal (no scaling)", GFX_NORMAL},
@ -1234,8 +1235,7 @@ void OSystem_SDL::displayMessageOnOSD(const char *msg) {
dst.bytesPerPixel = _osdSurface->format->BytesPerPixel;
// The font we are going to use:
// const Graphics::Font *font = &Graphics::g_sysfont;
const Graphics::Font *font = &Graphics::g_scummfont;
const Graphics::Font *font = FontMan.getFontByUsage(Graphics::FontManager::kOSDFont);
// Clear everything with the "transparent" color, i.e. the colorkey
SDL_FillRect(_osdSurface, 0, kOSDColorKey);