blob: 5046b8fe53fb2a2189873e19afdaf2536b23867b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef _FSCALC_H_
#define _FSCALC_H_
#include <string>
#include <fontconfig/fontconfig.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_TRUETYPE_TABLES_H
class Font {
FcConfig *fc;
FcPattern *aux;
FT_Library library;
FT_Face face;
public:
Font(std::string, int, int);
~Font();
void set_font_size(int);
double get_kerning(FT_UInt, FT_UInt);
unsigned int get_text_width(std::string);
unsigned int get_line_height();
};
#endif
|