OpendTect  6.6
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  StdSz {
  Control =0 , Graphics2D , Graphics3D , Fixed ,
  Graphics2DSmall , Graphics2DLarge , ControlSmall , ControlLarge
}
 
enum  Weight {
  Light , Normal , DemiBold , Bold ,
  Black
}
 

Public Member Functions

 FontData (const char *fms)
 
 FontData (int ptsz=defaultPointSize(), const char *fam=defaultFamily(), Weight wght=defaultWeight(), bool ital=defaultItalic())
 
const char * family () const
 
bool getFrom (const char *fms)
 Store/retrieve (in FileMultiString format). More...
 
bool isItalic () const
 
bool operator!= (const FontData &) const
 
bool operator== (const FontData &) const
 Calls getFrom. More...
 
int pointSize () const
 
void putTo (BufferString &) const
 
void setFamily (const char *f)
 
void setItalic (bool yn)
 
void setPointSize (int ps)
 
void setWeight (Weight w)
 
Weight weight () const
 

Static Public Member Functions

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

Protected Attributes

BufferString family_
 
bool italic_
 
int pointsize_
 
Weight weight_
 

Detailed Description

Data needed to make an actual font.

<>

Member Enumeration Documentation

◆ StdSz

Enumerator
Control 
Graphics2D 
Graphics3D 
Fixed 
Graphics2DSmall 
Graphics2DLarge 
ControlSmall 
ControlLarge 

◆ Weight

Enumerator
Light 
Normal 
DemiBold 
Bold 
Black 

Constructor & Destructor Documentation

◆ FontData() [1/2]

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

◆ FontData() [2/2]

FontData::FontData ( const char *  fms)

Member Function Documentation

◆ defaultFamily()

static const char* FontData::defaultFamily ( )
static

◆ defaultItalic()

static bool FontData::defaultItalic ( )
static

◆ defaultKeys()

static const char* const* FontData::defaultKeys ( )
static

array of strings with null as last element

◆ defaultPointSize()

static int FontData::defaultPointSize ( )
static

◆ defaultWeight()

static Weight FontData::defaultWeight ( )
static

◆ enumWeight()

static Weight FontData::enumWeight ( int  )
static

◆ family()

const char* FontData::family ( ) const
inline

◆ getFrom()

bool FontData::getFrom ( const char *  fms)

Store/retrieve (in FileMultiString format).

◆ isItalic()

bool FontData::isItalic ( ) const
inline

◆ key()

static const char* FontData::key ( StdSz  ss)
static

◆ numWeight()

static int FontData::numWeight ( Weight  )
static

◆ operator!=()

bool FontData::operator!= ( const FontData ) const

◆ operator==()

bool FontData::operator== ( const FontData ) const

Calls getFrom.

◆ pointSize()

int FontData::pointSize ( ) const
inline

◆ putTo()

void FontData::putTo ( BufferString ) const

◆ setDefaultFamily()

static void FontData::setDefaultFamily ( const char *  f)
static

◆ setDefaultItalic()

static void FontData::setDefaultItalic ( bool  yn)
static

◆ setDefaultPointSize()

static void FontData::setDefaultPointSize ( int  ps)
static

◆ setDefaultWeight()

static void FontData::setDefaultWeight ( Weight  w)
static

◆ setFamily()

void FontData::setFamily ( const char *  f)
inline

◆ setItalic()

void FontData::setItalic ( bool  yn)
inline

◆ setPointSize()

void FontData::setPointSize ( int  ps)
inline

◆ setWeight()

void FontData::setWeight ( Weight  w)
inline

◆ universalFamilies()

static const char* const* FontData::universalFamilies ( )
static

array of strings with null as last element

◆ weight()

Weight FontData::weight ( ) const
inline

Member Data Documentation

◆ family_

BufferString FontData::family_
protected

◆ italic_

bool FontData::italic_
protected

◆ pointsize_

int FontData::pointsize_
protected

◆ weight_

Weight FontData::weight_
protected

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