GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Classes | Public Member Functions | List of all members
GlVisFont Class Reference

#include <font.hpp>

Classes

struct  glyph
 

Public Member Functions

bool LoadFont (const std::string &path, int font_index, int font_size)
 
const glyphGetTexChar (char c) const
 
void getObjectSize (const std::string &text, int &w, int &h)
 Get the width and height of the bounding box containing the rendered text. More...
 
 GlVisFont ()
 
 ~GlVisFont ()
 
float GetKerning (char cprev, char c)
 
bool isFontLoaded ()
 
float getFontLineSpacing () const
 
float getFontDescender () const
 
float getAtlasWidth ()
 
float getAtlasHeight ()
 
unsigned getFontTex ()
 
void setAlphaChannel (GLenum alpha)
 

Detailed Description

Definition at line 26 of file font.hpp.

Constructor & Destructor Documentation

GlVisFont::GlVisFont ( )
inline

Definition at line 62 of file font.hpp.

GlVisFont::~GlVisFont ( )
inline

Definition at line 74 of file font.hpp.

Member Function Documentation

float GlVisFont::getAtlasHeight ( )
inline

Definition at line 105 of file font.hpp.

float GlVisFont::getAtlasWidth ( )
inline

Definition at line 103 of file font.hpp.

float GlVisFont::getFontDescender ( ) const
inline

Definition at line 101 of file font.hpp.

float GlVisFont::getFontLineSpacing ( ) const
inline

Definition at line 99 of file font.hpp.

unsigned GlVisFont::getFontTex ( )
inline

Definition at line 107 of file font.hpp.

float GlVisFont::GetKerning ( char  cprev,
char  c 
)
inline

Definition at line 82 of file font.hpp.

void GlVisFont::getObjectSize ( const std::string &  text,
int &  w,
int &  h 
)

Get the width and height of the bounding box containing the rendered text.

Definition at line 148 of file font.cpp.

const glyph& GlVisFont::GetTexChar ( char  c) const
inline

Definition at line 54 of file font.hpp.

bool GlVisFont::isFontLoaded ( )
inline

Definition at line 97 of file font.hpp.

bool GlVisFont::LoadFont ( const std::string &  path,
int  font_index,
int  font_size 
)

Definition at line 28 of file font.cpp.

void GlVisFont::setAlphaChannel ( GLenum  alpha)
inline

Definition at line 109 of file font.hpp.


The documentation for this class was generated from the following files: