1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 04:15:13 +00:00
mpv/gui/skin/font.h
diego 3e9e4acd8d Do not use leading underscores in multiple inclusion guards, they are reserved.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23709 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-02 22:34:45 +00:00

39 lines
723 B
C

#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