ScummVM API documentation
fontsjis.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 SCI_GRAPHICS_FONTSJIS_H
23#define SCI_GRAPHICS_FONTSJIS_H
24
25#include "sci/graphics/helpers.h"
26
27namespace Graphics {
28class FontSJIS;
29}
30
31namespace Sci {
32
36class GfxFontSjis : public GfxFont {
37public:
38 GfxFontSjis(GfxScreen *screen, GuiResourceId resourceId);
39 ~GfxFontSjis() override;
40
41 GuiResourceId getResourceId() override;
42 byte getHeight() override;
43 bool isDoubleByte(uint16 chr) override;
44 byte getCharWidth(uint16 chr) override;
45 void draw(uint16 chr, int16 top, int16 left, byte color, bool greyedOutput) override;
46
47private:
48 GfxScreen *_screen;
49 GuiResourceId _resourceId;
50
51 Graphics::FontSJIS *_commonFont;
52};
53
54} // End of namespace Sci
55
56#endif // SCI_GRAPHICS_FONTSJIS_H
Definition: scifont.h:37
Definition: fontsjis.h:36
Definition: screen.h:70
Definition: formatinfo.h:28
Definition: console.h:28