OpendTect-6_4  6.4
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
FontData Class Reference

Data needed to make an actual font. More...

Public Types

enum  Weight {
  Light, Normal, DemiBold, Bold,
  Black
}
 
enum  StdSz {
  Control =0, Graphics2D, Graphics3D, Fixed,
  Graphics2DSmall, Graphics2DLarge, ControlSmall, ControlLarge
}
 

Public Member Functions

 mDeclareEnumUtils (Weight) static int numWeight(Weight)
 
 FontData (int ptsz=defaultPointSize(), const char *fam=defaultFamily(), Weight wght=defaultWeight(), bool ital=defaultItalic())
 
 FontData (const char *fms)
 
bool getFrom (const char *fms)
 Calls getFrom. More...
 
void putTo (BufferString &) const
 
const char * family () const
 
int pointSize () const
 
Weight weight () const
 
bool isItalic () const
 
void setFamily (const char *f)
 
void setPointSize (int ps)
 
void setWeight (Weight w)
 
void setItalic (bool yn)
 

Static Public Member Functions

static Weight enumWeight (int)
 
static const char * defaultFamily ()
 
static int defaultPointSize ()
 
static Weight defaultWeight ()
 
static bool defaultItalic ()
 
static void setDefaultFamily (const char *f)
 
static void setDefaultPointSize (int ps)
 
static void setDefaultWeight (Weight w)
 
static void setDefaultItalic (bool yn)
 
static const char *const * universalFamilies ()
 array of strings with null as last element More...
 
static const char *const * defaultKeys ()
 array of strings with null as last element More...
 
static const char * key (StdSz ss)
 

Protected Attributes

BufferString family_
 
int pointsize_
 
Weight weight_
 
bool italic_
 

Detailed Description

Data needed to make an actual font.

Member Enumeration Documentation

Enumerator
Control 
Graphics2D 
Graphics3D 
Fixed 
Graphics2DSmall 
Graphics2DLarge 
ControlSmall 
ControlLarge 
Enumerator
Light 
Normal 
DemiBold 
Bold 
Black 

Constructor & Destructor Documentation

FontData::FontData ( int  ptsz = defaultPointSize(),
const char *  fam = defaultFamily(),
Weight  wght = defaultWeight(),
bool  ital = defaultItalic() 
)
FontData::FontData ( const char *  fms)

Member Function Documentation

static const char* FontData::defaultFamily ( )
static
static bool FontData::defaultItalic ( )
static
static const char* const* FontData::defaultKeys ( )
static

array of strings with null as last element

static int FontData::defaultPointSize ( )
static
static Weight FontData::defaultWeight ( )
static
static Weight FontData::enumWeight ( int  )
static
const char* FontData::family ( ) const
inline
bool FontData::getFrom ( const char *  fms)

Calls getFrom.

Store/retrieve (in FileMultiString format).

bool FontData::isItalic ( ) const
inline
static const char* FontData::key ( StdSz  ss)
static
FontData::mDeclareEnumUtils ( Weight  )
int FontData::pointSize ( ) const
inline
void FontData::putTo ( BufferString ) const
static void FontData::setDefaultFamily ( const char *  f)
static
static void FontData::setDefaultItalic ( bool  yn)
static
static void FontData::setDefaultPointSize ( int  ps)
static
static void FontData::setDefaultWeight ( Weight  w)
static
void FontData::setFamily ( const char *  f)
inline
void FontData::setItalic ( bool  yn)
inline
void FontData::setPointSize ( int  ps)
inline
void FontData::setWeight ( Weight  w)
inline
static const char* const* FontData::universalFamilies ( )
static

array of strings with null as last element

Weight FontData::weight ( ) const
inline

Member Data Documentation

BufferString FontData::family_
protected
bool FontData::italic_
protected
int FontData::pointsize_
protected
Weight FontData::weight_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019