aboutsummaryrefslogtreecommitdiff
path: root/saga/font.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-09-28 06:33:13 +0000
committerTorbjörn Andersson2005-09-28 06:33:13 +0000
commit1a48b01fefa916888c3139dfcc834463493a5308 (patch)
treed2559364bef67a3dd58b200767fe0f23fbc83067 /saga/font.h
parent2854ddbc809c01306761294be7851342808f6995 (diff)
downloadscummvm-rg350-1a48b01fefa916888c3139dfcc834463493a5308.tar.gz
scummvm-rg350-1a48b01fefa916888c3139dfcc834463493a5308.tar.bz2
scummvm-rg350-1a48b01fefa916888c3139dfcc834463493a5308.zip
Some more IHNM-related stuff:
* Use the script-specified text area for subtitles, if there is one. * Fixed a word-wrapping bug that would happen if a new line began with a space. I don't know about ITE, but IHNM puts two spaces after periods. Of course, the case where I saw this happen will probably go away once we start using the right font, but it could still happen elsewhere. svn-id: r18890
Diffstat (limited to 'saga/font.h')
-rw-r--r--saga/font.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/saga/font.h b/saga/font.h
index 9ef83bb50f..46d6d229a3 100644
--- a/saga/font.h
+++ b/saga/font.h
@@ -76,7 +76,6 @@ public:
}
};
-
struct FontHeader {
int charHeight;
int charWidth;
@@ -106,6 +105,7 @@ class Font {
public:
Font(SagaEngine *vm);
~Font(void);
+ FontData *getFont(FontId fontId);
int getStringWidth(FontId fontId, const char *text, size_t count, FontEffectFlags flags);
int getHeight(FontId fontId);
int getHeight(FontId fontId, const char *text, int width, FontEffectFlags flags);
@@ -124,7 +124,6 @@ class Font {
}
private:
-
void loadFont(uint32 fontResourceId);
void createOutline(FontData *font);
void draw(FontId fontId, Surface *ds, const char *text, size_t count, const Common::Point &point, int color, int effectColor, FontEffectFlags flags);
@@ -139,7 +138,6 @@ class Font {
return byteLength;
}
-
static const int _charMap[256];
SagaEngine *_vm;