Mercurial > mplayer.hg
view Gui/skin/font.h @ 18439:1ae44269c7a1
synced with 1.49
author | gabrov |
---|---|
date | Thu, 11 May 2006 15:12:29 +0000 |
parents | 0e1471d9da74 |
children | 2ec2301183cd |
line wrap: on
line source
#ifndef _FONT_H #define _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,char * fmt,... ); #endif