aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/fonts')
-rw-r--r--graphics/fonts/bdf.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/fonts/bdf.cpp b/graphics/fonts/bdf.cpp
index 1a23133858..9c5105d8b5 100644
--- a/graphics/fonts/bdf.cpp
+++ b/graphics/fonts/bdf.cpp
@@ -336,10 +336,9 @@ BdfFont *BdfFont::loadFont(Common::SeekableReadStream &stream) {
font.defaultBox.height = height;
font.defaultBox.xOffset = xOffset;
font.defaultBox.yOffset = yOffset;
- } else if (line.hasPrefix("SIZE ")) {
- int hDpi, vDpi;
- if (sscanf(line.c_str(), "SIZE %d %d %d", &font.size, &hDpi, &vDpi) != 3) {
- warning("BdfFont::loadFont: Invalid SIZE");
+ } else if (line.hasPrefix("PIXEL_SIZE ")) {
+ if (sscanf(line.c_str(), "PIXEL_SIZE %d", &font.size) != 1) {
+ warning("BdfFont::loadFont: Invalid PIXEL_SIZE");
freeBitmaps(bitmaps, font.numCharacters);
delete[] bitmaps;
delete[] advances;