- Your Widget Set For OpenGL
#include <ufontmetrics.hpp>
Inheritance diagram for ufo::UFontMetrics:

Public Member Functions | |
| virtual UFontRenderer * | getFontRenderer () const =0 | 
| virtual int | getAscent () const =0 | 
| virtual int | getDescent () const =0 | 
| virtual int | getLineskip () const =0 | 
| virtual int | getHeight () const =0 | 
| virtual int | getMaxAscent () const =0 | 
| virtual int | getMaxDescent () const =0 | 
| virtual int | getMaxCharWidth () const =0 | 
| virtual int | getUnderlinePosition () const =0 | 
| virtual int | getUnderlineThickness () const =0 | 
| virtual int | getStringWidth (const std::string &text) const | 
| virtual int | getStringWidth (const char *text, unsigned int nChar) const =0 | 
| virtual int | getCharWidth (const wchar_t chA) const =0 | 
| virtual unsigned int | viewToModel (const std::string &text, unsigned int w) const | 
| virtual unsigned int | viewToModel (const char *text, unsigned int nChar, unsigned int w) const =0 | 
This class describes the metrices of single characters as well as character strings.
      
  | 
  
| 
 returns the space between the base line and the top of the highest character  | 
  
      
  | 
  
| 
 Returns the width of the given character.  | 
  
      
  | 
  
| 
 returns the space between the base line and the bottom of the highest character  | 
  
      
  | 
  
| 
 Returns the total height of text. This means ascent + descent.  | 
  
      
  | 
  
| 
 returns the space in pixels between the descent of one line and the ascent of the next line  | 
  
      
  | 
  ||||||||||||
| 
 returns the width for the given text and the specified length. 
  | 
  
      
  | 
  
| 
 returns the width for the given text. Calls internally getStringWidth(const char*, unsigned int); 
  | 
  
      
  | 
  
| 
 returns the position of the underline relative to the base line.  | 
  
      
  | 
  
| 
 returns the thickness of the underline.  | 
  
      
  | 
  ||||||||||||||||
| 
 This method converts the view matrix to the model index, i.e. returns index of that character which will be drawn at the specified x position. 
 
 
  | 
  
      
  | 
  ||||||||||||
| 
 
 
  |