SUMO - Simulation of Urban MObility
polyfonts.h File Reference
#include <config.h>
#include "polyfonttypes.h"
Include dependency graph for polyfonts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

SUMOReal pfdkGetStringWidth (const char *c)
 
int pfDrawChar (wchar_t c)
 
int pfDrawString (const char *c)
 
int pfDrawStringW (wchar_t *c)
 
wchar_t pfGetChar (int glyph)
 
SUMOReal pfGetCharAdvance (wchar_t c)
 
SUMOReal pfGetCharAscent (wchar_t c)
 
int pfGetCharBBox (wchar_t c, SUMOReal *minx, SUMOReal *miny, SUMOReal *maxx, SUMOReal *maxy)
 
SUMOReal pfGetCharDescent (wchar_t c)
 
SUMOReal pfGetCharHeight (wchar_t c)
 
SUMOReal pfGetCharWidth (wchar_t c)
 
pffontpfGetCurrentFont ()
 
SUMOReal pfGetFontAscent ()
 
int pfGetFontBBox (SUMOReal *minx, SUMOReal *miny, SUMOReal *maxx, SUMOReal *maxy)
 
SUMOReal pfGetFontDescent ()
 
SUMOReal pfGetFontHeight ()
 
char * pfGetFontName ()
 
int pfGetFontNumGlyphs ()
 
SUMOReal pfGetFontWidth ()
 
void pfGetPosition (SUMOReal *x, SUMOReal *y)
 
void pfSetAngleD (SUMOReal a)
 
void pfSetAngleR (SUMOReal a)
 
void pfSetCenter (int onOff)
 
int pfSetFont (pffont *f)
 
void pfSetPosition (SUMOReal x, SUMOReal y)
 
void pfSetScale (SUMOReal s)
 
int pfSetScaleBox (char *c, SUMOReal w, SUMOReal h)
 
int pfSetScaleBoxW (wchar_t *c, SUMOReal w, SUMOReal h)
 
void pfSetScaleXY (SUMOReal sx, SUMOReal sy)
 
void pfSetSkew (SUMOReal s)
 
void pfSetWeight (int w)
 
void pfUnloadFont (pffont *f)
 

Function Documentation

§ pfdkGetStringWidth()

§ pfDrawChar()

int pfDrawChar ( wchar_t  c)

Definition at line 1058 of file polyfonts.c.

References drawWideChar().

§ pfDrawString()

§ pfDrawStringW()

int pfDrawStringW ( wchar_t *  c)

Definition at line 1093 of file polyfonts.c.

References drawWideChar(), and SUMOReal.

§ pfGetChar()

wchar_t pfGetChar ( int  glyph)

Definition at line 801 of file polyfonts.c.

References pfglyph::glyph, pffont::glyphs, and pffont::numglyphs.

§ pfGetCharAdvance()

SUMOReal pfGetCharAdvance ( wchar_t  c)

Definition at line 869 of file polyfonts.c.

References pfglyph::advance, pfGetGlyph(), and pfScaleX.

Referenced by pfdkGetStringWidth().

§ pfGetCharAscent()

SUMOReal pfGetCharAscent ( wchar_t  c)

Definition at line 946 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

§ pfGetCharBBox()

int pfGetCharBBox ( wchar_t  c,
SUMOReal minx,
SUMOReal miny,
SUMOReal maxx,
SUMOReal maxy 
)

§ pfGetCharDescent()

SUMOReal pfGetCharDescent ( wchar_t  c)

Definition at line 960 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

§ pfGetCharHeight()

SUMOReal pfGetCharHeight ( wchar_t  c)

Definition at line 918 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

§ pfGetCharWidth()

SUMOReal pfGetCharWidth ( wchar_t  c)

Definition at line 932 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

§ pfGetCurrentFont()

pffont* pfGetCurrentFont ( )

Definition at line 692 of file polyfonts.c.

References pfCurrentFont.

§ pfGetFontAscent()

SUMOReal pfGetFontAscent ( )

Definition at line 761 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

§ pfGetFontBBox()

int pfGetFontBBox ( SUMOReal minx,
SUMOReal miny,
SUMOReal maxx,
SUMOReal maxy 
)

§ pfGetFontDescent()

SUMOReal pfGetFontDescent ( )

Definition at line 775 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

§ pfGetFontHeight()

SUMOReal pfGetFontHeight ( )

Definition at line 733 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

§ pfGetFontName()

char* pfGetFontName ( )

Definition at line 678 of file polyfonts.c.

References pffont::name.

§ pfGetFontNumGlyphs()

int pfGetFontNumGlyphs ( )

Definition at line 789 of file polyfonts.c.

References pffont::numglyphs.

§ pfGetFontWidth()

SUMOReal pfGetFontWidth ( )

Definition at line 747 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

§ pfGetPosition()

void pfGetPosition ( SUMOReal x,
SUMOReal y 
)

Definition at line 488 of file polyfonts.c.

References pfTextX, and pfTextY.

§ pfSetAngleD()

void pfSetAngleD ( SUMOReal  a)

Definition at line 518 of file polyfonts.c.

References DtoR, and pfSetAngleR().

§ pfSetAngleR()

void pfSetAngleR ( SUMOReal  a)

Definition at line 510 of file polyfonts.c.

References pfTextCos, and pfTextSin.

Referenced by pfSetAngleD().

§ pfSetCenter()

void pfSetCenter ( int  onOff)

Definition at line 525 of file polyfonts.c.

References pfCenter.

§ pfSetFont()

int pfSetFont ( pffont f)

Definition at line 152 of file polyfonts.c.

§ pfSetPosition()

§ pfSetScale()

§ pfSetScaleBox()

int pfSetScaleBox ( char *  c,
SUMOReal  w,
SUMOReal  h 
)

Definition at line 638 of file polyfonts.c.

References getStringBox(), pfSetScaleXY(), and SUMOReal.

§ pfSetScaleBoxW()

int pfSetScaleBoxW ( wchar_t *  c,
SUMOReal  w,
SUMOReal  h 
)

Definition at line 658 of file polyfonts.c.

References getStringBoxW(), pfSetScaleXY(), and SUMOReal.

§ pfSetScaleXY()

§ pfSetSkew()

void pfSetSkew ( SUMOReal  s)

Definition at line 496 of file polyfonts.c.

References max, min, and pfTextSkew.

§ pfSetWeight()

void pfSetWeight ( int  w)

Definition at line 503 of file polyfonts.c.

References max, min, numWeights, and pfTextWeight.

§ pfUnloadFont()