Mercurial > mplayer.hg
view gui/skin/font.h @ 24334:f1d07df31307
r24216: Add missed in r24212 strings definitions
r24327: fix broken MinGW-Howto link
r24293: remove planned features, ok by diego
r24310: Support for selecting language via packet 28.
r24341: Move debug message to verbose output level.
r24342: Matroska muxer now available in libavformat.
r24344: Remove technical description of DVDs and libdvdread implementation.
r24346: Replace short region code explanation by more detailed section.
author | voroshil |
---|---|
date | Thu, 06 Sep 2007 20:03:01 +0000 |
parents | 3f0d00abc073 |
children | 3baf6a2283da |
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