1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/**
* @file font.h
* @author Joe Wingbermuehle
* @date 2004-2006
*
* @brief Header for the font functions.
*
*/
#ifndef FONT_H
#define FONT_H
#include "color.h"
typedef enum {
FONT_BORDER,
FONT_MENU,
FONT_TASK,
FONT_POPUP,
FONT_CLOCK,
FONT_TRAY,
FONT_TRAYBUTTON,
FONT_COUNT
} FontType;
void InitializeFonts();
void StartupFonts();
void ShutdownFonts();
void DestroyFonts();
void SetFont(FontType type, const char *value);
void RenderString(Drawable d, FontType font, ColorType color,
int x, int y, int width, Region region, const char *str);
int GetStringWidth(FontType type, const char *str);
int GetStringHeight(FontType type);
#endif
|