view Gui/skin/font.h @ 19889:d4bb39d65f87

When the hardware sample format is AC3, do not force using an hardcoded device name. The setting of the non-audio bit is now done by changing the default value of the AES0 parameter in the ALSA configuration structures. This works with user-specified devices, too.
author cladisch
date Mon, 18 Sep 2006 16:58:21 +0000
parents 2ec2301183cd
children
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,const char * fmt,... );

#endif