GUIDOLib  1.7.7
Guido Engine Internal Documentation
Public Member Functions | List of all members
AbstractFont Class Reference

a Abstract font class. More...

Inheritance diagram for AbstractFont:
VGFont

Public Member Functions

 AbstractFont (const char *name, int size, int properties=kFontNone)
 
virtual ~AbstractFont ()
 
virtual const char * GetName () const
 Returns the current object's name (as a string) More...
 
virtual int GetSize () const
 Returns the current object's size (as an int) More...
 
virtual int GetProperties () const
 Returns the current object's property value(s) (see enum above) More...
 
virtual void GetExtent (const char *s, int inCharCount, float *outWidth, float *outHeight, VGDevice *context) const
 
virtual void GetExtent (int c, float *outWidth, float *outHeight, VGDevice *context) const
 
- Public Member Functions inherited from VGFont
virtual ~VGFont ()
 

Additional Inherited Members

- Public Types inherited from VGFont
enum  { kFontNone = 0, kFontBold = 1, kFontItalic = 2, kFontUnderline = 4 }
 Font properties. More...
 
- Protected Member Functions inherited from VGFont
void * GetContext (VGDevice *context) const
 

Detailed Description

a Abstract font class.

Constructor & Destructor Documentation

◆ AbstractFont()

AbstractFont::AbstractFont ( const char *  name,
int  size,
int  properties = kFontNone 
)

◆ ~AbstractFont()

virtual AbstractFont::~AbstractFont ( )
virtual

Member Function Documentation

◆ GetExtent() [1/2]

virtual void AbstractFont::GetExtent ( const char *  s,
int  inCharCount,
float *  outWidth,
float *  outHeight,
VGDevice context 
) const
virtual

Computes the width and height of the input string using the current font capabilities in the input VGDevice

Implements VGFont.

◆ GetExtent() [2/2]

virtual void AbstractFont::GetExtent ( int  c,
float *  outWidth,
float *  outHeight,
VGDevice context 
) const
virtual

Computes the width and height of the input character using the current font capabilities in the input VGDevice

Implements VGFont.

◆ GetName()

virtual const char* AbstractFont::GetName ( ) const
inlinevirtual

Returns the current object's name (as a string)

Implements VGFont.

◆ GetProperties()

virtual int AbstractFont::GetProperties ( ) const
inlinevirtual

Returns the current object's property value(s) (see enum above)

Implements VGFont.

◆ GetSize()

virtual int AbstractFont::GetSize ( ) const
inlinevirtual

Returns the current object's size (as an int)

Implements VGFont.


Guido Project Copyright © 2019 Grame-CNCM