zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Font.hxx
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ZENI_FONT_HXX
19 #define ZENI_FONT_HXX
20 
21 #include <Zeni/Font.h>
22 
23 namespace Zeni {
24 
25  const String & Font::get_name() const {
26  return m_font_name;
27  }
28 
29  float Font::get_text_height() const {
30  return m_glyph_height;
31  }
32 
34  return m_virtual_screen_height;
35  }
36 
37  float Font_FT::Glyph::get_glyph_width() const {
38  return m_glyph_width;
39  }
40 
41 }
42 
43 #endif
float get_virtual_screen_height() const
Get the intended virtual screen height for the rendering of this Font.
Definition: Font.hxx:33
float get_text_height() const
Get the height of the font. The width is usually half the height, by default.
Definition: Font.hxx:29
const String & get_name() const
Get the name of the font.
Definition: Font.hxx:25