2 * This file is part of NumptyPhysics
3 * Copyright (C) 2008 Tim Edmonds
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 3 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
30 Font( const std::string
& file
, int ptsize
=10 );
31 Vec2
metrics( const std::string
& text
) const;
32 Canvas
* renderFont(const std::string
& text
, int colour
) const;
33 void drawLeft( Canvas
* canvas
, Vec2 pt
,
34 const std::string
& text
, int colour
) const;
35 void drawCenter( Canvas
* canvas
, Vec2 pt
,
36 const std::string
& text
, int colour
) const;
37 void drawWrap( Canvas
* canvas
, Rect area
,
38 const std::string
& text
, int colour
) const;
40 static const Font
* titleFont();
41 static const Font
* headingFont();
42 static const Font
* blurbFont();