2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
2007-01-16 09:23:22 +00:00
|
|
|
*
|
2007-05-30 21:56:52 +00:00
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2007-01-16 09:23:22 +00:00
|
|
|
*
|
2021-12-26 18:47:58 +01:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-02-18 02:34:17 +01:00
|
|
|
*
|
2007-01-16 09:23:22 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-02-18 02:34:17 +01:00
|
|
|
*
|
2007-01-16 09:23:22 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2007-01-16 09:23:22 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-02-20 17:22:58 +00:00
|
|
|
#ifndef AGI_FONT_H
|
|
|
|
#define AGI_FONT_H
|
|
|
|
|
2007-01-16 09:23:22 +00:00
|
|
|
namespace Agi {
|
|
|
|
|
2016-01-29 16:18:31 +01:00
|
|
|
class GfxFont {
|
|
|
|
public:
|
|
|
|
GfxFont(AgiBase *vm);
|
|
|
|
~GfxFont();
|
2016-01-29 13:13:40 +01:00
|
|
|
|
2016-01-29 16:18:31 +01:00
|
|
|
private:
|
|
|
|
AgiBase *_vm;
|
2015-05-19 12:39:39 +02:00
|
|
|
|
2016-01-29 16:18:31 +01:00
|
|
|
public:
|
|
|
|
void init();
|
|
|
|
const byte *getFontData();
|
2016-02-27 21:44:21 +01:00
|
|
|
bool isFontHires();
|
2007-01-16 09:23:22 +00:00
|
|
|
|
2016-01-29 16:18:31 +01:00
|
|
|
private:
|
2016-01-29 17:14:49 +01:00
|
|
|
void overwriteSaveRestoreDialogCharacter();
|
2016-01-31 13:49:42 +01:00
|
|
|
void overwriteExtendedWithRussianSet();
|
2016-01-29 17:14:49 +01:00
|
|
|
|
2016-01-29 16:43:15 +01:00
|
|
|
void loadFontScummVMFile(Common::String fontFilename);
|
2016-01-29 16:18:31 +01:00
|
|
|
void loadFontMickey();
|
|
|
|
void loadFontAmigaPseudoTopaz();
|
|
|
|
void loadFontAppleIIgs();
|
2016-01-29 21:13:33 +01:00
|
|
|
void loadFontAtariST(Common::String fontFilename);
|
2016-02-27 21:44:21 +01:00
|
|
|
void loadFontHercules();
|
2007-09-01 14:58:46 +00:00
|
|
|
|
2016-01-29 16:18:31 +01:00
|
|
|
const uint8 *_fontData; // pointer to the currently used font
|
|
|
|
uint8 *_fontDataAllocated;
|
2016-02-27 21:44:21 +01:00
|
|
|
bool _fontIsHires;
|
2007-09-06 10:48:00 +00:00
|
|
|
};
|
|
|
|
|
2007-01-16 12:40:51 +00:00
|
|
|
} // End of namespace Agi
|
2007-02-20 17:22:58 +00:00
|
|
|
|
|
|
|
#endif /* AGI_FONT_H */
|