JWM Source Documentation
font.h
Go to the documentation of this file.
1 
10 #ifndef FONT_H
11 #define FONT_H
12 
13 #include "color.h"
14 
16 typedef unsigned char FontType;
17 #define FONT_BORDER 0
18 #define FONT_MENU 1
19 #define FONT_POPUP 2
20 #define FONT_TRAY 3
21 #define FONT_PAGER 4
22 #define FONT_CLOCK 5
23 #define FONT_TASKLIST 6
24 #define FONT_TRAYBUTTON 7
25 #define FONT_COUNT 8
26 
27 void InitializeFonts(void);
28 void StartupFonts(void);
29 void ShutdownFonts(void);
30 void DestroyFonts(void);
31 
36 void SetFont(FontType type, const char *value);
37 
47 void RenderString(Drawable d, FontType font, ColorType color,
48  int x, int y, int width, const char *str);
49 
55 int GetStringWidth(FontType ft, const char *str);
56 
62 
67 char *ConvertFromUTF8(char *str);
68 
69 #endif /* FONT_H */
70 

joewing.net / Projects / JWM