#include <korfont.h>
Public Member Functions | |
| virtual void | setDrawingMode (DrawingMode mode) |
| virtual void | toggleFlippedMode (bool enable) |
| virtual uint | getFontHeight () const |
| virtual uint | getMaxFontWidth () const |
| virtual uint | getCharWidth (uint16 ch) const |
| virtual void | drawChar (void *dst, uint16 ch, int pitch, int bpp, uint32 c1, uint32 c2, int maxW, int maxH) const |
Public Member Functions inherited from Graphics::FontKorean | |
| virtual bool | loadData (const char *fontFile)=0 |
| virtual void | setDrawingMode (DrawingMode mode) |
| virtual void | setCharSpacing (int spacing) |
| virtual void | setLineSpacing (int spacing) |
| void | drawChar (Graphics::Surface &dst, uint16 ch, int x, int y, uint32 c1, uint32 c2) const |
Protected Types | |
| enum | DrawingFeature { kFeatDefault = 1 << 0, kFeatOutline = 1 << 1, kFeatShadow = 1 << 2, kFeatFMTownsShadow = 1 << 3, kFeatFlipped = 1 << 4 } |
Protected Member Functions | |
| bool | isASCII (uint16 ch) const |
| virtual const uint8 * | getCharData (uint16 c) const =0 |
| virtual bool | hasFeature (int feat) const =0 |
Protected Attributes | |
| DrawingMode | _drawMode |
| bool | _flippedMode |
| int | _fontWidth |
| int | _fontHeight |
| uint8 | _bitPosNewLineMask |
Additional Inherited Members | |
Public Types inherited from Graphics::FontKorean | |
| enum | DrawingMode { kDefaultMode, kOutlineMode, kShadowMode } |
Static Public Member Functions inherited from Graphics::FontKorean | |
| static FontKorean * | createFont (const char *fontFile) |
A base class to render monochrome Korean fonts.
|
virtual |
Enable flipped character drawing if supported by the Font (e.g. in the MI1 circus scene after Guybrush gets shot out of the cannon).
Reimplemented from Graphics::FontKorean.
|
virtual |
Returns the height of the font.
Implements Graphics::FontKorean.
|
virtual |
Returns the max. width of the font.
Implements Graphics::FontKorean.
|
virtual |
Returns the width of a specific character.
Implements Graphics::FontKorean.
|
virtual |
Draws a Korean char on the given raw buffer.
| dst | pointer to the destination |
| ch | character to draw (in little endian) |
| pitch | pitch of the destination buffer (size in bytes) |
| bpp | bytes per pixel of the destination buffer |
| c1 | forground color |
| c2 | outline color |
| maxW | max draw width (to ensure that character drawing takes place within surface boundaries), -1 = no check |
| maxH | max draw height (to ensure that character drawing takes place within surface boundaries), -1 = no check |
Implements Graphics::FontKorean.