File: font.cpp

package info (click to toggle)
rafkill 1.2.2-3.3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 13,268 kB
  • sloc: cpp: 13,508; makefile: 64; sh: 14
file content (18 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <allegro.h>
#include "font.h"

Font::Font( FONT * f ):
my_font( f ){
}
	
Font::Font( const Font & f ):
my_font( f.getInternalFont() ){
}
	
const int Font::textLength( const char * text ){
	return text_length( getInternalFont(), text );
}

const int Font::getHeight() const{
	return text_height( getInternalFont() );
}