31#ifndef SWORD25_FONTRESOURCE_H
32#define SWORD25_FONTRESOURCE_H
34#include "common/scummsys.h"
35#include "common/rect.h"
36#include "common/formats/xmlparser.h"
37#include "sword25/kernel/common.h"
38#include "sword25/kernel/resource.h"
87 assert(character >= 0 && character < 256);
88 return _characterRects[character];
95 return _bitmapFileName;
109 XML_PROP(bitmap,
true)
110 XML_PROP(lineheight, false)
117 XML_PROP(right, true)
118 XML_PROP(bottom, true)
124 bool parserCallback_font(ParserNode *node);
125 bool parserCallback_character(ParserNode *node);
Definition: xmlparser.h:98
Definition: fontresource.h:44
int getLineHeight() const
Gibt die Zeilenhöhe des Fonts in Pixeln zurück.
Definition: fontresource.h:68
FontResource(Kernel *pKernel, const Common::String &fileName)
Erzeugt eine neues Exemplar von BS_FontResource.
const Common::String & getCharactermapFileName() const
Gibt den Dateinamen der Charactermap zurück.
Definition: fontresource.h:94
int getGapWidth() const
Gibt den Buchstabenabstand der Fonts in Pixeln zurück.
Definition: fontresource.h:77
bool isValid() const
Gibt true zurück, wenn das Objekt korrekt initialisiert wurde.
Definition: fontresource.h:59
const Common::Rect & getCharacterRect(int character) const
Gibt das Bounding-Rect eines Zeichens auf der Charactermap zurück.
Definition: fontresource.h:86
Definition: resource.h:43