File: font.h

package info (click to toggle)
xtrojka 123-12
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 492 kB
  • ctags: 443
  • sloc: ansic: 3,087; makefile: 135; sh: 19
file content (23 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *	xtrojka (c) 1994,1995,1996 Maarten Los
 *
 *	#include "COPYRIGHT"	
 *
 *	created:	31.xii.1995
 *	modified:
 *
 *	Some macro's for easy font handling
 */

#ifndef _font_h_
#define _font_h_

/*
 *	this macro is useful for non-proportional fonts only!!!
 */
#define FontWidth(s)	 ((s)->max_bounds.rbearing - (s)->min_bounds.lbearing)

#define FontHeight(s)	((s)->max_bounds.ascent + (s)->max_bounds.descent)

#endif /* _font_h_ */