File: Font.h

package info (click to toggle)
litehtml 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,928 kB
  • sloc: ansic: 31,385; cpp: 27,328; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "Bitmap.h"

class Font
{
public:
	int width    = 0;
	int height   = 0;
	int ascent   = 0;
	int descent  = 0;
	int x_height = 0;
	Bitmap glyphs[128];
	
	static string font_dir;
	static struct size_name { int size; string name; } installed_fonts[];
	
	Font(int size);
	Bitmap get_glyph(int ch, web_color color);
	void load(string filename);
};