diff options
author | Johannes Schickel | 2006-04-14 02:16:55 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-04-14 02:16:55 +0000 |
commit | 96cf7028b98cd12e2278b37aee43b3d669214abb (patch) | |
tree | c9ea75045b671229d8ac4e2656d8475ac5909471 /graphics/fontman.cpp | |
parent | 1470dadb1de3250dfceeaa246604ca0f26889bbf (diff) | |
download | scummvm-rg350-96cf7028b98cd12e2278b37aee43b3d669214abb.tar.gz scummvm-rg350-96cf7028b98cd12e2278b37aee43b3d669214abb.tar.bz2 scummvm-rg350-96cf7028b98cd12e2278b37aee43b3d669214abb.zip |
- implements .bdf font loader based on convbdf (sure could have some clean up)
- adds three different font styles to the themes (normal, bold (default one), italic)
- implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section)
- changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though)
- extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName)
- adds the font style constans to the builtin constants for the evaluator)
svn-id: r21868
Diffstat (limited to 'graphics/fontman.cpp')
-rw-r--r-- | graphics/fontman.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/graphics/fontman.cpp b/graphics/fontman.cpp index d38201ace4..9b567c0be8 100644 --- a/graphics/fontman.cpp +++ b/graphics/fontman.cpp @@ -58,8 +58,11 @@ FontManager::FontManager() { } #endif -//const Font *FontManager::getFontByName(const Common::String &name) const { -//} +const Font *FontManager::getFontByName(const Common::String &name) const { + if (!_fontMap.contains(name)) + return 0; + return _fontMap[name]; +} const Font *FontManager::getFontByUsage(FontUsage usage) const { switch (usage) { |