Open CASCADE Technology 6.5.2
Data Structures | Public Member Functions | Static Public Member Functions
OpenGl_FontMgr Class Reference

#include <OpenGl_FontMgr.hxx>

Data Structures

struct  OGLFont_Cache
struct  OGLFont_SysInfo

Public Member Functions

int request_font (const Handle< TCollection_HAsciiString > &fontName, const OSD_FontAspect fontAspect, const Standard_Integer fontHeight)
void render_text (const Standard_Integer id, const wchar_t *text, const Standard_Boolean is2d=Standard_False)
void render_text (const wchar_t *text, const Standard_Boolean is2d=Standard_False)
const FTFont * fontById (const Standard_Integer id)
Standard_ShortReal computeWidth (const Standard_Integer id, const wchar_t *str)
bool requestFontList (Graphic3d_NListOfHAsciiString &)
void setCurrentScale (const Standard_ShortReal xScale=1.f, const Standard_ShortReal yScale=1.f)

Static Public Member Functions

static OpenGl_FontMgrinstance ()

Member Function Documentation

Standard_ShortReal OpenGl_FontMgr::computeWidth ( const Standard_Integer  id,
const wchar_t *  str 
)
const FTFont* OpenGl_FontMgr::fontById ( const Standard_Integer  id)
static OpenGl_FontMgr* OpenGl_FontMgr::instance ( ) [static]
void OpenGl_FontMgr::render_text ( const wchar_t *  text,
const Standard_Boolean  is2d = Standard_False 
)
void OpenGl_FontMgr::render_text ( const Standard_Integer  id,
const wchar_t *  text,
const Standard_Boolean  is2d = Standard_False 
)
int OpenGl_FontMgr::request_font ( const Handle< TCollection_HAsciiString > &  fontName,
const OSD_FontAspect  fontAspect,
const Standard_Integer  fontHeight 
)
bool OpenGl_FontMgr::requestFontList ( Graphic3d_NListOfHAsciiString &  )
void OpenGl_FontMgr::setCurrentScale ( const Standard_ShortReal  xScale = 1.f,
const Standard_ShortReal  yScale = 1.f 
)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines