/*
 *	$Id$
 */

#ifndef  ___X_FONT_H__
#define  ___X_FONT_H__


#include  "../x_font.h"


u_char *  x_get_bitmap( XFontStruct *  xfont , u_char *  ch , size_t  len) ;


#define  x_get_bitmap_line( xfont , bitmap , y , bitmap_line) \
	( (bitmap) && \
	  memcmp( ( (bitmap_line) = (bitmap) + (y) * (xfont)->glyph_width_bytes) , \
		"\x0\x0\x0" , (xfont)->glyph_width_bytes) != 0)

/* x & 7 == x % 8 */
#define  x_get_bitmap_cell( bitmap_line , x) \
	( (bitmap_line)[(x) / 8] & (1 << (8 - ((x) & 7) - 1)))


#endif
