- 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
This commit is contained in:
Johannes Schickel 2006-04-14 02:16:55 +00:00
parent 1470dadb1d
commit 96cf7028b9
10 changed files with 713 additions and 46 deletions

View file

@ -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) {