aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/graphics/truetype_font.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/graphics/truetype_font.h')
-rw-r--r--engines/zvision/graphics/truetype_font.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/engines/zvision/graphics/truetype_font.h b/engines/zvision/graphics/truetype_font.h
index 30ef1c73a3..b5fac4af8a 100644
--- a/engines/zvision/graphics/truetype_font.h
+++ b/engines/zvision/graphics/truetype_font.h
@@ -36,45 +36,6 @@ namespace ZVision {
class ZVision;
-class TruetypeFont {
-public:
- TruetypeFont(ZVision *engine, int32 fontHeight);
- ~TruetypeFont();
-
-private:
- ZVision *_engine;
- Graphics::Font *_font;
- int _lineHeight;
-
- size_t _maxCharWidth;
- size_t _maxCharHeight;
-
-public:
- int32 _fontHeight;
-
-public:
- /**
- * Loads a .ttf file into memory. This must be called
- * before any calls to drawTextToSurface
- *
- * @param filename The file name of the .ttf file to load
- */
- bool loadFile(const Common::String &filename);
- /**
- * Renders the supplied text to a Surface using 0x0 as the
- * background color.
- *
- * @param text The to render
- * @param textColor The color to render the text with
- * @param maxWidth The max width the text should take up.
- * @param maxHeight The max height the text should take up.
- * @param align The alignment of the text within the bounds of maxWidth
- * @param wrap If true, any words extending past maxWidth will wrap to a new line. If false, ellipses will be rendered to show that the text didn't fit
- * @return A Surface containing the rendered text
- */
- Graphics::Surface *drawTextToSurface(const Common::String &text, uint16 textColor, int maxWidth, int maxHeight, Graphics::TextAlign align, bool wrap);
-};
-
// Styled TTF
class StyledTTFont {
public: