From ebc74a7c9bf9c8066723eb79223970d6238463a8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 26 Jul 2009 14:17:54 +0000 Subject: Add a factory method, which tries to open different SJIS fonts/ROMs and returns a font for the first present data. svn-id: r42816 --- graphics/sjis.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'graphics/sjis.h') diff --git a/graphics/sjis.h b/graphics/sjis.h index 141a1ed13a..60bf7844a3 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -49,6 +49,19 @@ class FontSJIS { public: virtual ~FontSJIS() {} + /** + * Creates the first SJIS font, which ROM/font file is present. + * It will also call loadData, so the user can just start + * using the font. + * + * It will prefer ScummVM's font. + * + * TODO: Consider adding some way to overwrite the first checked + * font, some games might want to prefer the original ROM over + * ScummVM's. + */ + static FontSJIS *createFont(); + /** * Load the font data. */ -- cgit v1.2.3