SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
polyfonts.h File Reference
#include <config.h>
#include "polyfonttypes.h"

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

int pfDrawChar ( wchar_t  c)

Definition at line 1054 of file polyfonts.c.

References drawWideChar().

int pfDrawStringW ( wchar_t *  c)

Definition at line 1089 of file polyfonts.c.

References drawWideChar().

wchar_t pfGetChar ( int  glyph)

Definition at line 797 of file polyfonts.c.

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

SUMOReal pfGetCharAdvance ( wchar_t  c)

Definition at line 865 of file polyfonts.c.

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

Referenced by pfdkGetStringWidth().

SUMOReal pfGetCharAscent ( wchar_t  c)

Definition at line 942 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

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

Definition at line 956 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

SUMOReal pfGetCharHeight ( wchar_t  c)

Definition at line 914 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

SUMOReal pfGetCharWidth ( wchar_t  c)

Definition at line 928 of file polyfonts.c.

References pfGetCharBBox(), and SUMOReal.

pffont* pfGetCurrentFont ( )

Definition at line 688 of file polyfonts.c.

References pfCurrentFont.

SUMOReal pfGetFontAscent ( )

Definition at line 757 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

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

Definition at line 771 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

SUMOReal pfGetFontHeight ( )

Definition at line 729 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

char* pfGetFontName ( )

Definition at line 674 of file polyfonts.c.

References pffont::name.

int pfGetFontNumGlyphs ( )

Definition at line 785 of file polyfonts.c.

References pffont::numglyphs.

SUMOReal pfGetFontWidth ( )

Definition at line 743 of file polyfonts.c.

References pfGetFontBBox(), and SUMOReal.

void pfGetPosition ( SUMOReal x,
SUMOReal y 
)

Definition at line 484 of file polyfonts.c.

References pfTextX, and pfTextY.

void pfSetAngleD ( SUMOReal  a)

Definition at line 514 of file polyfonts.c.

References DtoR, and pfSetAngleR().

void pfSetAngleR ( SUMOReal  a)

Definition at line 506 of file polyfonts.c.

References pfTextCos, and pfTextSin.

Referenced by pfSetAngleD().

void pfSetCenter ( int  onOff)

Definition at line 521 of file polyfonts.c.

int pfSetFont ( pffont f)

Definition at line 148 of file polyfonts.c.

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

Definition at line 634 of file polyfonts.c.

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

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

Definition at line 654 of file polyfonts.c.

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

void pfSetSkew ( SUMOReal  s)

Definition at line 492 of file polyfonts.c.

References max, min, and pfTextSkew.

void pfSetWeight ( int  w)

Definition at line 499 of file polyfonts.c.

References max, min, and numWeights.

void pfUnloadFont ( pffont f)

Definition at line 252 of file polyfonts.c.

References pffont::glyphs, pffont::loaded, pffont::name, and pffont::numglyphs.