Open CASCADE Technology 6.6.0
Public Member Functions | Static Public Member Functions
Font_FontMgr Class Reference

Collects and provides information about available fonts in system.

#include <Font_FontMgr.hxx>

Inheritance diagram for Font_FontMgr:
Inheritance graph
[legend]

Public Member Functions

const Font_NListOfSystemFont & GetAvailableFonts () const
void GetAvailableFontsNames (TColStd_SequenceOfHAsciiString &theFontsNames) const
 Returns sequence of available fonts names

Handle_Font_SystemFont GetFont (const Handle< TCollection_HAsciiString > &theFontName, const Font_FontAspect theFontAspect, const Standard_Integer theFontSize) const
 Returns font that match given parameters.
If theFontName is empty string returned font can have any FontName.
If theFontAspect is Font_FA_Undefined returned font can have any FontAspect.
If theFontSize is "-1" returned font can have any FontSize.

Handle_Font_SystemFont FindFont (const Handle< TCollection_HAsciiString > &theFontName, const Font_FontAspect theFontAspect, const Standard_Integer theFontSize) const
 Tries to find font by given parameters.
If the specified font is not found tries to use font names mapping.
If the requested family name not found -> search for any font family
with given aspect and height. If the font is still not found, returns
any font available in the system. Returns NULL in case when the fonts
are not found in the system.

Static Public Member Functions

static Handle_Font_FontMgr GetInstance ()

Member Function Documentation

Handle_Font_SystemFont Font_FontMgr::FindFont ( const Handle< TCollection_HAsciiString > &  theFontName,
const Font_FontAspect  theFontAspect,
const Standard_Integer  theFontSize 
) const
const Font_NListOfSystemFont& Font_FontMgr::GetAvailableFonts ( ) const
void Font_FontMgr::GetAvailableFontsNames ( TColStd_SequenceOfHAsciiString theFontsNames) const
Handle_Font_SystemFont Font_FontMgr::GetFont ( const Handle< TCollection_HAsciiString > &  theFontName,
const Font_FontAspect  theFontAspect,
const Standard_Integer  theFontSize 
) const
static Handle_Font_FontMgr Font_FontMgr::GetInstance ( ) [static]

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