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