1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00
mpv/Gui/skin/font.h
pontscho 52a7bad9a6 - sync with x11_common
- half rewrited font render engine (disabled by default)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8865 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-09 20:47:14 +00:00

39 lines
717 B
C

#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