aboutsummaryrefslogtreecommitdiff
path: root/graphics/fontman.cpp
AgeCommit message (Collapse)Author
2014-02-18GRAPHICS: Make GPL headers consistent in themselves.Johannes Schickel
2012-03-28GRAPHICS: Take ownership of fonts passed to FontManager.Alyssa Milburn
2012-01-07GRAPHICS: Let FontManager::setFont accept an "const BdfFont *".Johannes Schickel
As the documentation points out this method currently only works for BDF fonts, thus it is safer to let it actually just accept such.
2012-01-07GUI: Rework how the default localized font is managed.Johannes Schickel
Now we set the default localized font to the "text_default" font of the currently active theme and default to the big GUI font in case none is specified properly.
2011-08-21BADA: Fixup indentation using tabs in lieu of space charsChris Warren-Smith
2011-08-21BADA: Code formatting and style changes following reviewChris Warren-Smith
2011-08-21BADA: Updated code formatting in assignFontToUsage()Chris Warren-Smith
2011-08-21BADA: Initial BADA port implementationChris Warren-Smith
2011-07-01GRAPHICS: Move NewFont code to a separate file.Johannes Schickel
2011-06-30ALL: Require DECLARE_SINGLETON to be used in the Common namepsaceOri Avtalion
Silences the clang warning: static data member specialization of '_singleton' must originally be declared in namespace 'Common'; accepted as a C++0x extension [-Wc++0x-extensions] Wrapping "namespace Common {}" around the macro assignment causes clang to complain about a spurious semicolon, and removing the semicolon at the end of the macro causes some editors to misbehave. Changing the requirement of using the macro in one namespace (the global) to another (Common) seems a small price to pay to silence a warning.
2011-06-07JANITORIAL: Unbreak building with --disable-translationeriktorbjorn
I don't know if there is more code that can be removed when disabling translations, but this is the obvious obstacle.
2011-06-06GRAPHICS: Add kLocalizedFont in FontManagerThierry Crozat
This makes it easy to get a localized font for the current TranslationManager charset if one has been loaded. It tries first to find one for the BigGUI or GUI fonts and then looks for any acceptable font. Also only use lower case font name for the FontManager HashMap. This is to avoid issues with the case when looking for a font by its name. There was for example an issue for font helvB12 that is named helvb12 in the scummmodern theme.
2011-06-06GRAPHICS: Move genLocalizedFontFilename() to FontManager classThierry Crozat
It was defined in ThemeEngine class , but I moved it to make it possible to use localized font in other places.
2011-06-06GRAPHICS: Get rid of kSODFont (ScummFont)Thierry Crozat
OSD is now using the kGUIFont instead. The main advantage is that the kGUIFont can be used for translated text while only ASCII characters were present in ScummFont.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258
2010-06-28i18n: Add support for locale-dependent fontsEugene Sandulenko
Currently it ws not decided where to put fonts, but if you put BDF files into themepath, they will get picked up. The font name has to contain same codepage specification as in the .po file, i.e. fixed5x8-iso-8859-5.bdf for Cyrillic codepage. In case the font does not exist, default will be used. All built in fonts get proper names. TODO: Currently there is a bug with our font cacher. Font clR6x12-iso-8859-5 is empty after loading from FCC file. Reason is unknown. svn-id: r50448
2010-06-15GUI: Added default names for builtin fonts.Eugene Sandulenko
svn-id: r49773
2010-03-13Fix our DECLARE_SINGLETON macro to conform to the C++ specs.Johannes Schickel
We need to use a namespace Common { } there to make strict C++ compilers like clang++ and comeau happy. I also added a slight comment about why that is needed to the macro definition and a note that you need to use it from the global namespace. svn-id: r48254
2009-12-10Hopefully fixing linking on MSVC:Johannes Schickel
svn-id: r46329
2009-12-09Cleanup: remove "s_initialized" from CursorManager and FontManager ↵Johannes Schickel
implementation, these classes are Singletons, so they will ever only be initialized once at most anyway. svn-id: r46313
2009-12-09GRAPHICS: Change font code to be identical on all platformsMax Horn
svn-id: r46309
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-27Reverted r26922.Johannes Schickel
svn-id: r26967
2007-05-22Simpilified Singleton implementation and usage.Johannes Schickel
svn-id: r26922
2006-04-14- implements .bdf font loader based on convbdf (sure could have some clean up)Johannes Schickel
- 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
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20519
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-11-27Patch #1341626: "New GP32 port"Eugene Sandulenko
svn-id: r19710
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-10-08PalmOS : very bad hack to fix global constructor problem with ARMChris Apers
svn-id: r18970
2005-02-06Moved the console font from gui to graphicsMax Horn
svn-id: r16742
2005-01-07Remove extra ;Travis Howell
svn-id: r16471
2005-01-06work around yet another MSVC problemMax Horn
svn-id: r16470
2005-01-06Switching GUI to an alternate font; using a second, bigger, font for 640x480 ↵Max Horn
games like COMI. Note: we can always easily switch back to the SCUMM font or any other font, if we want to svn-id: r16467
2005-01-06oopsMax Horn
svn-id: r16461
2005-01-06Added a font manager (work in progress)Max Horn
svn-id: r16460