ScummVM API documentation
font.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef AGI_FONT_H
23 #define AGI_FONT_H
24 
25 namespace Agi {
26 
27 class GfxFont {
28 public:
29  GfxFont(AgiBase *vm);
30  ~GfxFont();
31 
32 private:
33  AgiBase *_vm;
34 
35 public:
36  void init();
37  const byte *getFontData();
38  bool isFontHires();
39 
40 private:
41  void overwriteSaveRestoreDialogCharacter();
42  void overwriteExtendedWithRussianSet();
43 
44  void loadFontScummVMFile(const Common::Path &fontFilename);
45  void loadFontMickey();
46  void loadFontAmigaPseudoTopaz();
47  void loadFontAppleIIgs();
48  void loadFontAtariST(const Common::Path &fontFilename);
49  void loadFontHercules();
50 
51  const uint8 *_fontData; // pointer to the currently used font
52  uint8 *_fontDataAllocated;
53  bool _fontIsHires;
54 };
55 
56 } // End of namespace Agi
57 
58 #endif /* AGI_FONT_H */
Definition: agi.h:713
Definition: path.h:52
Definition: agi.h:63
Definition: font.h:27