Mercurial > mplayer.hg
view gui/skin/font.h @ 25877:c541499ddf25
sync with r25663 and misc. fixes, patch by JRaSH
author | kraymer |
---|---|
date | Mon, 28 Jan 2008 17:13:45 +0000 |
parents | 3baf6a2283da |
children | 4129c8cfa742 |
line wrap: on
line source
#ifndef GUI_FONT_H #define GUI_FONT_H #include "bitmap.h" #include "app.h" #define fntAlignLeft 0 #define fntAlignCenter 1 #define fntAlignRight 2 typedef struct { int x,y; // location int sx,sy; // size } fntChar; typedef struct { fntChar Fnt[256]; txSample Bitmap; char name[128]; } bmpFont; extern txSample Bitmap; extern bmpFont * Fonts[26]; extern int fntAddNewFont( char * name ); extern void fntFreeFont( void ); extern int fntFindID( char * name ); extern int fntTextHeight( int id,char * str ); extern int fntTextWidth( int id,char * str ); extern int fntRead( char * path,char * fname ); extern txSample * fntRender( wItem * item,int px,const char * fmt,... ); #endif /* GUI_FONT_H */