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

a SVG font class. More...

Inheritance diagram for SVGFont:
VGFont

Public Member Functions

 SVGFont (const char *name, int size, int properties)
 
virtual ~SVGFont ()
 
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 SVG font class.

Constructor & Destructor Documentation

◆ SVGFont()

SVGFont::SVGFont ( const char *  name,
int  size,
int  properties 
)

◆ ~SVGFont()

virtual SVGFont::~SVGFont ( )
virtual

Member Function Documentation

◆ GetExtent() [1/2]

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

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

Implements VGFont.

◆ GetProperties()

virtual int SVGFont::GetProperties ( ) const
inlinevirtual

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

Implements VGFont.

◆ GetSize()

virtual int SVGFont::GetSize ( ) const
inlinevirtual

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

Implements VGFont.


Guido Project Copyright © 2019 Grame-CNCM