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

a DSL font class. More...

Inheritance diagram for BinaryFont:
VGFont

Public Member Functions

 BinaryFont (const char *name, int size, int properties=kFontNone)
 
virtual ~BinaryFont ()
 
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 DSL font class.

Constructor & Destructor Documentation

◆ BinaryFont()

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

◆ ~BinaryFont()

virtual BinaryFont::~BinaryFont ( )
virtual

Member Function Documentation

◆ GetExtent() [1/2]

virtual void BinaryFont::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 BinaryFont::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* BinaryFont::GetName ( ) const
inlinevirtual

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

Implements VGFont.

◆ GetProperties()

virtual int BinaryFont::GetProperties ( ) const
inlinevirtual

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

Implements VGFont.

◆ GetSize()

virtual int BinaryFont::GetSize ( ) const
inlinevirtual

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

Implements VGFont.


Guido Project Copyright © 2019 Grame-CNCM