aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/bdf.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-07-01 21:53:01 +0200
committerJohannes Schickel2011-07-01 21:53:01 +0200
commitfa5f8dc7031fb8d96a0faaafa817403a46634096 (patch)
tree37a80a332b7f7796e70c73e32382c283303fe05a /graphics/fonts/bdf.h
parent9e3366d66e472e387be1147d74ea14ecfce25b7f (diff)
downloadscummvm-rg350-fa5f8dc7031fb8d96a0faaafa817403a46634096.tar.gz
scummvm-rg350-fa5f8dc7031fb8d96a0faaafa817403a46634096.tar.bz2
scummvm-rg350-fa5f8dc7031fb8d96a0faaafa817403a46634096.zip
GRAPHICS: Rename NewFont to BdfFont.
Diffstat (limited to 'graphics/fonts/bdf.h')
-rw-r--r--graphics/fonts/bdf.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/graphics/fonts/bdf.h b/graphics/fonts/bdf.h
index db2c746fd4..31c009eb27 100644
--- a/graphics/fonts/bdf.h
+++ b/graphics/fonts/bdf.h
@@ -43,7 +43,7 @@ struct BBX {
/* builtin C-based proportional/fixed font structure */
/* based on The Microwindows Project http://microwindows.org */
-struct FontDesc {
+struct BdfFontDesc {
const char *name; /* font name */
int maxwidth; /* max width in pixels */
int height; /* height in pixels */
@@ -59,16 +59,16 @@ struct FontDesc {
long bits_size; /* # words of bitmap_t bits */
};
-struct NewFontData;
+struct BdfFontData;
-class NewFont : public Font {
+class BdfFont : public Font {
protected:
- FontDesc _desc;
- NewFontData *_font;
+ BdfFontDesc _desc;
+ BdfFontData *_font;
public:
- NewFont(const FontDesc &desc, NewFontData *font = 0) : _desc(desc), _font(font) {}
- ~NewFont();
+ BdfFont(const BdfFontDesc &desc, BdfFontData *font = 0) : _desc(desc), _font(font) {}
+ ~BdfFont();
virtual int getFontHeight() const;
virtual int getMaxCharWidth() const;
@@ -76,19 +76,19 @@ public:
virtual int getCharWidth(byte chr) const;
virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const;
- static NewFont *loadFont(Common::SeekableReadStream &stream);
- static bool cacheFontData(const NewFont &font, const Common::String &filename);
- static NewFont *loadFromCache(Common::SeekableReadStream &stream);
+ static BdfFont *loadFont(Common::SeekableReadStream &stream);
+ static bool cacheFontData(const BdfFont &font, const Common::String &filename);
+ static BdfFont *loadFromCache(Common::SeekableReadStream &stream);
};
#define DEFINE_FONT(n) \
- const NewFont *n = 0; \
+ const BdfFont *n = 0; \
void create_##n() { \
- n = new NewFont(desc); \
+ n = new BdfFont(desc); \
}
#define FORWARD_DECLARE_FONT(n) \
- extern const NewFont *n; \
+ extern const BdfFont *n; \
extern void create_##n()
#define INIT_FONT(n) \