From ec67b583b05ace5a0e70449cf335deeba6df5e14 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 26 Jul 2009 14:18:34 +0000 Subject: Add way to overwrite default SJIS font. svn-id: r42819 --- graphics/sjis.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'graphics/sjis.h') diff --git a/graphics/sjis.h b/graphics/sjis.h index b690401547..ea485db460 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -35,6 +35,7 @@ #include "common/scummsys.h" #include "common/stream.h" +#include "common/util.h" #include "graphics/surface.h" @@ -54,13 +55,13 @@ public: * It will also call loadData, so the user can just start * using the font. * - * It will prefer ScummVM's font. + * It'll prefer the platform specific ROM file, when platform + * is set to a value, which's font ROM is supported. + * So far that is only kPlatformFMTowns. * - * TODO: Consider adding some way to overwrite the first checked - * font, some games might want to prefer the original ROM over - * ScummVM's. + * The last file tried is ScummVM's SJIS.FNT file. */ - static FontSJIS *createFont(); + static FontSJIS *createFont(const Common::Platform platform = Common::kPlatformUnknown); /** * Load the font data. -- cgit v1.2.3