mirror of
https://github.com/mpv-player/mpv
synced 2025-01-07 07:30:09 +00:00
9f6529b3d3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1694 b3059339-0415-0410-9bf9-f77b7e298cf2
31 lines
569 B
C
31 lines
569 B
C
|
|
#ifndef _MYFONT
|
|
#define _MYFONT
|
|
|
|
#include "../bitmap/bitmap.h"
|
|
|
|
typedef struct
|
|
{
|
|
int x,y; // location
|
|
int sx,sy; // size
|
|
} fntChar;
|
|
|
|
typedef struct
|
|
{
|
|
fntChar Fnt[256];
|
|
txSample Bitmap;
|
|
char name[128];
|
|
} bmpFont;
|
|
|
|
extern fntChar Fnt[256];
|
|
extern txSample Bitmap;
|
|
extern bmpFont * Fonts[25];
|
|
|
|
extern int fntAddNewFont( char * name );
|
|
extern void fntFreeFont( int id );
|
|
extern int fntFindID( char * name );
|
|
|
|
extern int fntRead( char * path,char * fname,int id );
|
|
extern txSample * fntRender( int id,int px,int sx,char * fmt,... );
|
|
|
|
#endif |